MNIST 初心者向けチュートリアルのグラフを生成しようとしていますが、次のエラーが発生します。何らかの理由で、merged_summary_op オブジェクトは None です。
Traceback (most recent call last):
File "mnist1.py", line 48, in <module>
summary_str = sess.run(merged_summary_op)
File "/home/vagrant/anaconda2/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 307, in run
% (subfetch, fetch, type(subfetch), e.message))
TypeError: Fetch argument None of None has invalid type <type 'NoneType'>, must be a string or Tensor. (Can not convert a NoneType into a Tensor or Operation.)
ここで一歩足りないと思います。最初にセッションを開始し、次にステートメントを実行しました。
merged_summary_op = tf.merge_all_summaries()