=============最近发现了一个问题==================
如果一直出现No dashboards are active for the current data set.
请检查路径,我发现如果 出现 中文路径,必然显示不出来
================分割线===============
tensorboard在Tensorflow调试中一直扮演着比较重要的角色。网上的tensorboard实在太麻烦,必须结合他们的训练例程来。看API手册又太生涩,经过几天的琢磨,tensorboard中的graph绘制应该是没有什么问题了。
自己写了个很好理解的例子如下:
import tensorflow as tf
sess = tf.InteractiveSession()
a = tf.Variable(0, name="a")
b = tf.Variable(1, name="b")
c = tf.add(a,b)
sess.run(tf.global_variables_initializer())
summary_writer = tf.summary.FileWriter("log", sess.graph)
然后就会生成几个文件保存在log文件夹下,
在终端上运行:
tensorboard --logdir="log"
便可以看到所绘制的graph了