tensorboard指定ip打开

有些文章说,在 windows 的 cmd 中输入命令:

      tensorboard --logdir=tf_log_path

就可以在浏览器中输入 http://0.0.0.0:6006/ (或者 http://localhost:6006/) 就可以看到 tensorboard 的界面了。

但是,事实上,常常不是这样的。如果想用 localhost 为本地ip 打开 tensorboard,需要指定:

      tensorboard --logdir=tf_log_path --host=localhost

如果想使用其他的 ip 为 tensorboard 的 ip,同理也可以在此处指定

猜你喜欢

转载自www.cnblogs.com/wandaoyi/p/11645151.html