张量板中的显示内容不起作用

问题描述 投票:0回答:1

请帮助!我是使用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))
python tensorflow tensorboard
1个回答
0
投票

我只是想...

© www.soinside.com 2019 - 2024. All rights reserved.