CNN_tsc
CNN_tsc copied to clipboard
TypeError: Fetch argument None has invalid type <class 'NoneType'>
Thanks for the nice skeleton repo @RobRomijnders :)
When I run your code off-the-shelf after the tf_upgrades to TF 1.xx I hit the following error:
Traceback (most recent call last):
File "tsc_main.py", line 76, in <module>
cost_val, summ,acc_val = sess.run([model.cost,model.merged,model.accuracy],feed_dict = {model.input: X_batch, model.labels: y_batch, model.keep_prob:1.0})
File "/home/petteri/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 767, in run
run_metadata_ptr)
File "/home/petteri/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 952, in _run
fetch_handler = _FetchHandler(self._graph, fetches, feed_dict_string)
File "/home/petteri/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 408, in __init__
self._fetch_mapper = _FetchMapper.for_fetch(fetches)
File "/home/petteri/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 230, in for_fetch
return _ListFetchMapper(fetch)
File "/home/petteri/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 337, in __init__
self._mappers = [_FetchMapper.for_fetch(fetch) for fetch in fetches]
File "/home/petteri/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 337, in <listcomp>
self._mappers = [_FetchMapper.for_fetch(fetch) for fetch in fetches]
File "/home/petteri/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 227, in for_fetch
(fetch, type(fetch)))
TypeError: Fetch argument None has invalid type <class 'NoneType'>