tensorboard use understanding

I contacted tensorboard for the first time some time ago, and the online tutorial is also very simple and easy to understand. If the server (linux) has multiple nodes, you have to pay attention.

First, start the tensorboard server on the server side

tensorboard --logdir=/path/to/log-directory

The server side is a linux command line interface, and the graphics can only be viewed from the local windows side, so open the terminal in windows win+r and then cmd,

ssh -L 16006:127.0.0.1:6006 [email protected]

ssh -L 16006:node02:6006 [email protected]

If you use the first command, it will connect to node01 by default on a multi-node server, and if the server-side program runs on other nodes, tensorboard cannot be used correctly. In this case, you need to use the second line of commands.

Finally, open the browser on the windows side and visit

http://127.0.0.1:16006/

Then you can use the tensorboard correctly. The 16006 in the above address is the same as the 16006 above. This can be taken at will, as long as the synchronization is ensured.

Guess you like

Origin blog.csdn.net/qq_41872271/article/details/109046039