请帮助!我是使用Tensorboard的新手,并一直试图使用Vizualize我的模型的指标,但出现一些奇怪的错误因此,我从此处使用了一个简单的张量板代码:https://www.easy-tensorflow.com/tf-tutorials/basics/introduction-to-tensorboard,但仍然遇到相同的错误,这是在运行命令行tensorboard --logdir =“ ./ graphs”来对板进行vizualize时,我得到了本地@但它什么也没有。当我去检查创建的日志文件的内容时,这就是我发现的全部内容:enter image description here将tensorflow作为tf导入tf.reset_default_graph()#清除上一个单元格的已定义变量和操作
# create graph
a = tf.constant(2)
b = tf.constant(3)
c = tf.add(a, b)
# creating the writer out of the session
# writer = tf.summary.FileWriter('./graphs', tf.get_default_graph())
# launch the graph in a session
with tf.Session() as sess:
# or creating the writer inside the session
writer = tf.summary.FileWriter('./graphs', sess.graph)
print(sess.run(c))
我只是想...