如何创建一个 Tensorflow Tensorboard 空图 [英] How to create a Tensorflow Tensorboard Empty Graph

查看:41
本文介绍了如何创建一个 Tensorflow Tensorboard 空图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 tensorboard --logdir=/home/vagrant/notebook

在 tensorboard:6006 > 图中,显示未找到图形定义文件.

at tensorboard:6006 > graph, it says No graph definition files were found.

要存储图形,请创建一个 tf.python.training.summary_io.SummaryWriter 并通过构造函数或调用其 add_graph() 方法传递图形.

To store a graph, create a tf.python.training.summary_io.SummaryWriter and pass the graph either via the constructor, or by calling its add_graph() method.

import tensorflow as tf

sess = tf.Session()
writer = tf.python.training.summary_io.SummaryWriter("/home/vagrant/notebook", sess.graph_def)

然而页面还是空的,我如何开始玩 tensorboard?

However the page is still empty, how can I start playing with tensorboard?

一个可以添加节点的空图,可编辑.

An empty graph that can add nodes, editable.

似乎tensorboard无法创建图表来添加节点、拖动和编辑等(我对官方视频感到困惑).

Seems like tensorboard is unable to create a graph to add nodes, drag and edit etc ( I am confused by the official video ).

运行 https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/tutorials/mnist/fully_connected_feed.py 然后 tensorboard --logdir=/home/vagrant/notebook/data 可以查看图

running https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/tutorials/mnist/fully_connected_feed.py and then tensorboard --logdir=/home/vagrant/notebook/data is able to view the graph

不过好像 tensorflow 只提供了查看摘要的能力,没有什么不同使它脱颖而出

However seems like tensorflow only provide ability to view summary, nothing much different to make it standout

推荐答案

TensorBoard 是一个用于可视化 TensorFlow 图 并在训练和推理过程中分析记录的指标.该图是使用 Python API 创建的,然后使用 tf.train.SummaryWriter.add_graph 写出() 方法.将 SummaryWriter 写入的文件加载到 TensorBoard 中时,可以看到保存的图形,并进行交互探索.

TensorBoard is a tool for visualizing the TensorFlow graph and analyzing recorded metrics during training and inference. The graph is created using the Python API, then written out using the tf.train.SummaryWriter.add_graph() method. When you load the file written by the SummaryWriter into TensorBoard, you can see the graph that was saved, and interactively explore it.

然而,TensorBoard 不是用于构建图形本身的工具.它不支持向图中添加节点.

However, TensorBoard is not a tool for building the graph itself. It does not have any support for adding nodes to the graph.

这篇关于如何创建一个 Tensorflow Tensorboard 空图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆