0
在寫總結,無法在tensorboard
summary_writer1 = tf.train.SummaryWriter(logs_path, graph=tf.get_default_graph())
工作正常,並在tensorboard產生圖形可視化圖形,但這樣做
summary_writer2 = tf.train.SummaryWriter(logs_path, sess.graph())
產生以下錯誤,同時運行的代碼模型進行訓練,
Traceback (most recent call last):
File "MultiLayerPerceptron.py", line 121, in <module>
summary_writer2 = tf.train.SummaryWriter(logs_path, graph=sess.graph())
TypeError: 'Graph' object is not callable
缺省圖的區別如summary_writer1
和圖形summar_writer2