How to create a Tensorflow Tensorboard Empty Graph

Anonymous picture Anonymous · Nov 12, 2015 · Viewed 20.1k times · Source

launch tensorboard with tensorboard --logdir=/home/vagrant/notebook

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

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)

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

current tensorboard

Current Tensorboard

result wanted

An empty graph that can add nodes, editable.

update

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

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

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

Answer

mrry picture mrry · Nov 13, 2015

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.

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