一個簡單的using_tensorboard.py程序,如下:
1 #using_tensorboard.py 2 3 import tensorflow as tf 4 5 a = tf.constant(10,name="a") 6 b = tf.constant(90,name="b") 7 y = tf.Variable(a+b*2,name='y') 8 model = tf.initialize_all_variables() 9 10 with tf.Session() as session: 11 merged = tf.summary.merge_all() 12 writer = tf.summary.FileWriter("/tmp/tensorflowlogs",session.graph) 13 session.run(model) 14 print(session.run(y))
運行以上代碼后,啟動tensorBoard服務:
D:\tmp\tensorflowlogs>tensorboard --logdir=. Starting TensorBoard b'47' at http://0.0.0.0:6006
然后在瀏覽器中輸入:http://localhost:6006/
結果顯示是一片空白。
網上搜索解決方案,有說只能在chrome瀏覽器中顯示,但試過360瀏覽器和Google chrome瀏覽器,均是如此。
后突然想到可能是版本問題,我的chrome瀏覽器版本號是44,最新的版本是60.於是升級到58版,結果顯示基本正常。但仍然有webGL問題。

