写了一个TensorFlow卷积神经网络的训练程序。
基于mnist数据集进行训练和测试。
但是在程序运行的时候报出了下面的错误。
Traceback (most recent call last):
File "nn_eg.py", line 104, in <module>
train_loss, train_op = sess.run([loss, train_op], {input_x: batch[0], output_y: batch[1]})
File "/home/zhonghangalex/venv/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 929, in run
run_metadata_ptr)
File "/home/zhonghangalex/venv/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1137, in _run
self._graph, fetches, feed_dict_tensor, feed_handles=feed_handles)
File "/home/zhonghangalex/venv/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 471, in __init__
self._fetch_mapper = _FetchMapper.for_fetch(fetches)
File "/home/zhonghangalex/venv/lib/python3.6/site-packages/tensorfl