我使用tutorials/mnist/fully_connected_feed.py脚本创建了带有图表的Tensorboard日志(其他脚本也存在相同的问题)。

summary_writer = tf.train.SummaryWriter("logdir", graph_def=sess.graph_def)

Tensorboard适用于标量,图像和直方图,但不适用于图形。我得到一个白页,只有页眉。

如果打开浏览器控制台(Firefox 42,Ubuntu 14.04),当我切换到“GRAPH”选项卡时会出现以下错误:
NS_ERROR_FAILURE:  tf-tensorboard.html-12.js:115:0
Reading graph.pbtxt : 2 ms tf-tensorboard.html.js:13:1
Reading stats.pbtxt : 0 ms tf-tensorboard.html.js:13:1
Parsing graph.pbtxt : 26 ms tf-tensorboard.html.js:13:1
Normalizing names : 10 ms tf-tensorboard.html.js:13:1
Building the data structure : 13 ms tf-tensorboard.html.js:13:1
Adding nodes : 14 ms tf-tensorboard.html.js:13:1
Detect series : 16 ms tf-tensorboard.html.js:13:1
Adding edges : 14 ms tf-tensorboard.html.js:13:1
Finding similar subgraphs : 27 ms tf-tensorboard.html.js:13:1
new tf.graph.render.Hierarchy : 17 ms tf-tensorboard.html.js:13:1
tf-graph-scene (layout): : 214 ms tf-tensorboard.html.js:13:1
tf-graph-scene (build scene): : 118 ms tf-tensorboard.html.js:13:1
NS_ERROR_FAILURE:  tf-tensorboard.html-12.js:115:0
NS_ERROR_FAILURE:  tf-tensorboard.html-6.js:76:0
TypeError: this.translate is undefined

如何解决这个问题?

最佳答案

据我所知,Tensorboard仅在Google Chrome中运行。我在Mac上尝试使用Safari,Firefox和Chrome,但只能在Chrome中正确显示图形。

关于python - Tensorboard不显示图形(HTML错误),我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/33680397/

10-12 22:26