- Mastering TensorFlow 1.x
- Armando Fandango
- 201字
- 2021-06-25 22:50:58
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:
- Create the computational graph as usual.
- 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.
- 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.
- Write the event logs to disk by passing the Summary ProtocolBuffers object to a tf.summary.FileWriter object.
- 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.
推薦閱讀
- 新媒體跨界交互設計
- Learning Cocos2d-x Game Development
- SDL Game Development
- 數字道路技術架構與建設指南
- 微軟互聯網信息服務(IIS)最佳實踐 (微軟技術開發者叢書)
- 深入理解序列化與反序列化
- 數字媒體專業英語(第2版)
- Istio實戰指南
- 觸摸屏應用技術從入門到精通
- 單片機原理及應用
- 筆記本電腦維修技能實訓
- Instant Website Touch Integration
- The Applied Artificial Intelligence Workshop
- 基于S5PV210處理器的嵌入式開發完全攻略
- Machine Learning Projects for Mobile Applications