官术网_书友最值得收藏!

TensorBoard details

TensorBoard works by reading log files generated by TensorFlow. Thus, we need to modify the programming model defined here to incorporate additional operation nodes that would produce the information in the logs that we want to visualize using TensorBoard. The programming model or the flow of programs with TensorBoard can be generally stated as follows:

  1. Create the computational graph as usual.
  2. Create summary nodes. Attach summary operations from the tf.summary package to the nodes that output the values that you wish to collect and analyze.
  3. Run the summary nodes along with running your model nodes. Generally, you would use the convenience function, tf.summary.merge_all(), to merge all the summary nodes into one summary node. Then executing this merged node would basically execute all the summary nodes. The merged summary node produces a serialized Summary ProtocolBuffers object containing the union of all the summaries.
  1. Write the event logs to disk by passing the Summary ProtocolBuffers object to a tf.summary.FileWriter object.
  2. Start TensorBoard and analyze the visualized data.

In this section, we did not create summary nodes but used TensorBoard in a very simple way. We will cover the advanced usage of TensorBoard later in this book.

主站蜘蛛池模板: 郓城县| 通城县| 沈阳市| 腾冲县| 安溪县| 罗平县| 且末县| 汶上县| 高州市| 巴中市| 疏附县| 印江| 玉环县| 富裕县| 嘉荫县| 当涂县| 天台县| 都昌县| 嘉义市| 楚雄市| 林芝县| 长岛县| 盈江县| 岳阳市| 黑龙江省| 松滋市| 泰来县| 且末县| 内乡县| 突泉县| 汽车| 福贡县| 灵宝市| 陵水| 水富县| 上饶县| 左贡县| 巴东县| 巧家县| 侯马市| 崇州市|