运行TensorBoard时出现权限错误:
PermissionError: [Errno 13] Permission denied: '/tmp/.tensorboard-info/pid-20281.info'
参考文章:
https://www.computationalimaging.cn/2020/01/tensorboardpermissionerror-errno-13.html
https://www.jianshu.com/p/9fa5022ebe10
https://github.com/tensorflow/tensorboard/issues/2010#issuecomment-484605529
错误原因请见上面两篇参考
解决方案:
命令行运行
export TMPDIR=/tmp/$USER;
# 可通过cd /tmp/$USER查看上述语句的含义
mkdir -p $TMPDIR;
再运行正常的tensorboard程序:
tensorboard --logdir $LOGDIR