TensorBoard is part of the TensorFlow suite. Yes, TensorFlow is actually a suite: it has TensorFlow (the module), TensorBoard and TensorServing.

TensorBoard is graph vizualization software. You can make nice visualizations with this.

If tensorflow runs some operations, it creates event files. TensorBoard can convert these event files to graphs.

Related Course:
Complete Guide to TensorFlow for Deep Learning with Python

install tensorboard run

TensorBoard comes with TensorFlow by default. But it may be that it doesn’t run automatically.
To show its location:

pip3 show tensorboard
pip show tensorboard

If the command tensorboard doesn’t do anything, setup an alias in the shell

alias tensorboard='python3 PATH/tensorboard/'

Where PATH is the location shown by ‘pip show tensorboard’.
In my case:



TensorBoard can create nice graphs from event files. You can create an event file from within your existing code. Add one line of code to the program you made before:

import tensorflow as tf

a = tf.add(2, 6)

with tf.Session() as ses:
writer = tf.summary.FileWriter('./graphs', ses.graph)

Save as

Then run the commands:

tensorboard --logdir="./graphs"

It will then bootup a server:

TensorBoard 1.9.0 at http://linux:6006 (Press CTRL+C to quit)

In any case that’s localhost, so

It will look something like this:


The TensorBoard screen should show up in your browser. Open your browser, it won’t popup automatically.

Previous Post Next Post

Cookie policy | Privacy policy | ©

Deep Learning