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

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.

主站蜘蛛池模板: 河北省| 鹤山市| 威宁| 江孜县| 扶绥县| 清镇市| 大名县| 景宁| 河北区| 化隆| 买车| 沙湾县| 交城县| 石家庄市| 双桥区| 湛江市| 茂名市| 洪湖市| 电白县| 陵水| 行唐县| 安塞县| 甘泉县| 丹棱县| 红河县| 府谷县| 思南县| 高邑县| 象州县| 堆龙德庆县| 安乡县| 兴山县| 恩施市| 娄烦县| 湘潭县| 太谷县| 五莲县| 大埔县| 资兴市| 泰来县| 萨嘎县|