如果是打开一个终端,然后直接在命令行下面输入
tensorboard --logdir=runs
这个时候就会报错,错误如下:
原因在于,你并没有到当前目录下:所以需要先cd到当前工作目录下,在运行上述代码,比如说我到代码文件在这:
我就得先:
cd documents/code/notebook/learn_Pytorch
这个时候在输入:
tensorboard --logdir=runs
然后打开
http://localhost:6006/
就可以正常使用了