【发布时间】:2019-08-08 01:02:36
【问题描述】:
安装在我的机器上时,Tensorboard 似乎无法正确加载。我在虚拟环境中使用 Python 3.7 和 Tensorboard 1.13.1。我正在运行一个非常简单的示例脚本:
import numpy as np
import tensorflow as tf
a = tf.constant(3.0)
b = tf.constant(4.0)
c = a+b
sess = tf.Session()
print(sess.run(c))
writer = tf.summary.FileWriter('.')
writer.add_graph(tf.get_default_graph())
writer.flush()
sess.close()
tf.reset_default_graph()
当我在虚拟环境中运行 tensorboard 时,我收到了
TensorBoard 1.13.1 at http://S13:6006 (Press CTRL+C to quit)
现在,当我在 Firefox 上打开页面时,我得到以下结果: Firefox Result
在全新安装 Chromium 时,我得到: Chrome
它永远不会完成加载。
我正在运行 Fedora 25.01。我试过在网上搜索这个错误,但找不到任何东西。任何形式的帮助都将不胜感激。
PS:我设法让 tensorflow+board 在具有非常相似设置的 Fedora 机器上运行。在那里,张量板可以正常工作。
编辑:Tensorboard 不会在控制台中显示任何错误或警告。
【问题讨论】:
-
我遇到了一个非常相似的问题。尝试加载“localhost:6006”而不是给定的内容。为我工作。查看这个 Q/A,我在其中找到了这个可能的解决方案:stackoverflow.com/questions/35961348/tensorboard-not-working