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:
Deep Learning with TensorFlow 2 and Keras
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 shellalias tensorboard='python3 PATH/tensorboard/main.py'
Where PATH is the location shown by ‘pip show tensorboard’.
In my case:/home/linux/.local/lib/python3.5/site-packages/
tensorboard
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 |
Save as tensor2.py
Then run the commands:python tensor2.py
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 http://127.0.0.1:6006
It will look something like this:
The TensorBoard screen should show up in your browser. Open your browser, it won’t popup automatically.