小编Mar*_*Cnu的帖子

Tensorboard 不显示图形(HTML 错误)

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

summary_writer = tf.train.SummaryWriter("logdir", graph_def=sess.graph_def)
Run Code Online (Sandbox Code Playgroud)

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 : …
Run Code Online (Sandbox Code Playgroud)

python tensorflow tensorboard

5
推荐指数
1
解决办法
3230
查看次数

访问HTML文件中包含的SVG文件

我在我的HTML文档中包含了一个SVG文件,<embed src="mySvg.svg" />现在我想操纵SVG中的内容.

我发现SVG不在"文档"中,而是在"窗口"中.

在我的SVG文件中,我有一个脚本:(
启动onload中的init函数)
function init(evt) {
svgDocument = evt.target.ownerDocument; svgDocument.getElementById('anIdOfMySvgFile'); // I successfully get the element of the SVG file
this.parent.document.getElementById('anIdOfMyHtmlFile'); // I successfully get the element of the HTML file
}

但是如何使用位于我的HTML文件中的脚本从SVG文件中选择一个元素?
window.document是我的HTML文件...但我不知道我的SVG文件是如何识别的!

html javascript svg

2
推荐指数
1
解决办法
1138
查看次数

标签 统计

html ×1

javascript ×1

python ×1

svg ×1

tensorboard ×1

tensorflow ×1