1、启动TensorBoard
(1)writer = tf.summary.FileWriter('./my_graph', sess.graph) 写入文件
(2)终端运行: tensorboard --logdir="my_graph" 启动服务
(3)浏览器输入:http://localhost:6006 查看图
(指定端口号:tensorboard --logdir="./my_graph" --port=6006)