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

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.

主站蜘蛛池模板: 泾阳县| 岐山县| 临高县| 喜德县| 梅州市| 新丰县| 桐梓县| 襄城县| 宜都市| 平果县| 开平市| 固阳县| 关岭| 中宁县| 华阴市| 巴中市| 政和县| 巴林右旗| 京山县| 安顺市| 盐城市| 南开区| 平利县| 平果县| 门源| 浦县| 饶阳县| 鄄城县| 南木林县| 山西省| 东宁县| 兴文县| 同心县| 贵定县| 白水县| 康乐县| 南汇区| 开封县| 达州市| 桃江县| 绥江县|