使用tensorboard问题总结

1.问题“AttributeError: ‘module’ object has no attribute ‘SummaryWriter’”

//tensorflow版本问题
tf.train.SummaryWriter函数替换为tf.summary.FileWriter

2.问题“ImportError: No module named tensorboard.tensorboard”

//tensorflow安装文件确定
$find /home/xxx/anaconda2/ -name *tensorboard*
//发现的确没有tensorboard.py文件
//解决方法:更新tensorflow
$conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
$source activate tensorflow
$conda update tensorflow        //更新

3.显示不同训练模型曲线的方法

$ tensorboard --logdir=run1:"/home/.../summary",run2:"/home/.../summary" --port=6006

4.在同一个graph中显示train loss和validation loss曲线

https://github.com/chasingbob/using-tensorboard

你可能感兴趣的:(tensorflow)