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

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.

主站蜘蛛池模板: 仁化县| 涡阳县| 西华县| 财经| 怀来县| 海丰县| 彭山县| 依安县| 金山区| 呼玛县| 炉霍县| 吴川市| 郸城县| 黑龙江省| 东港市| 广州市| 阳朔县| 玉溪市| 静宁县| 全南县| 亚东县| 桃源县| 建阳市| 隆昌县| 福清市| 常德市| 汶上县| 赫章县| 宕昌县| 彭水| 开化县| 彭泽县| 栾川县| 北流市| 光山县| 中西区| 大姚县| 崇州市| 西乌珠穆沁旗| 呼伦贝尔市| 陵川县|