Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tensorflow Tensorboard default port

Is there a way to change the default port (6006) on TensorBoard so we could open multiple TensorBoards? Maybe an option like --port="8008"?

like image 382
nicolasdavid Avatar asked Feb 22 '16 10:02

nicolasdavid


People also ask

What port does Tensorboard run on?

By default Tensorboard attaches to localhost and port 6006 (unless the port is already taken, in which case it will try 6007 , 6008 , etc.).

How do I access Tensorboard?

Start TensorBoard through the command line or within a notebook experience. The two interfaces are generally the same. In notebooks, use the %tensorboard line magic. On the command line, run the same command without "%".


2 Answers

In fact there is an option to change the default port ...

tensorboard --logdir=/tmp  --port=8008 
like image 85
nicolasdavid Avatar answered Sep 20 '22 09:09

nicolasdavid


You should provide a port flag (--port=6007).

But I am here to explain how you can find it and other flags without any documentation. Almost all command line tools have a flag -h or --help which shows all possible flags this tool allows.

By running it you will see information about a port flag and that --logdir allows you to

also pass a comma separated list of log directories

and you can also inspect separate event-files and tags with --event_file and --tag flags

like image 32
Salvador Dali Avatar answered Sep 21 '22 09:09

Salvador Dali