Tensorboard
Write data
writer = tf.summary.FileWriter("/tensorflow/tf", graph=tf.get_default_graph())
tensorboard --port 6006 --logdir=tf
运行发现无法打开,显示:
No dashboards are active for the current data set.
Probable causes:
You haven’t written any data to your event files. TensorBoard can’t find your event files.
根据教练提示,参考docker commit上的示范,利用commit + run
解决该问题
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES d799da109b75 tensorflow/tensorflow:latest-py3 "/run_jupyter.sh -..." 9 days ago Up 2 hours (Paused) 6006/tcp, 0.0.0.0:8888->8888/tcp py3
docker commit d799da109b75 tensorflow/tensorflow:latest-py3-board
docker run -it -p 8888:8888 -p 6006:6006 -v ~/Documents/Study/DeepLearning101-002:/notebooks/DeepLearning101-002 tensorflow/tensorflow:latest-py3-board
!tensorboard --logdir="/tensorflow/tf" -- port 6006
打开http://localhost:6006/ 可以运行了
Change log
2017.11.4 创建