美文网首页
tensorboard错误 :TensorBoard attem

tensorboard错误 :TensorBoard attem

作者: 只为此心无垠 | 来源:发表于2018-11-15 17:52 被阅读36次

    训练tensorflow运行 tensorboard出错

    命令:

    $ tensorboard --logdir /home/class/tensorboard_log
    

    错误:
    ERROR:tensorflow:TensorBoard attempted to bind to port 6006, but it was already in use

    解决方案:

    输入命令:

    $ lsof -i:6006
    

    结果:
    COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
    tensorboa 25243 user 3u IPv6 124016769 0t0 TCP *:x11-6
    说明PID25243占用了6006端口,kill掉即可

    输入命令:

    $ kill -9 25243
    

    再次运行:

    $ tensorboard --logdir /home/class/tensorboard_log
    

    输出TensorBoard 1.11.0 at http://master:6006 (Press CTRL+C to quit)就成功了

    相关文章

      网友评论

          本文标题:tensorboard错误 :TensorBoard attem

          本文链接:https://www.haomeiwen.com/subject/lhxufqtx.html