LSTM_tsc
LSTM_tsc copied to clipboard
TypeError: Fetch argument None has invalid type <class 'NoneType'>
Hi, first thing: your project is very interesting Second: I got an error at the execution at line 164 : result = sess.run([cost,merged,accuracy],feed_dict = {input_data: X_batch, targets: y_batch, keep_prob:1})
Do you know where this could come from ?
Thank you in advance
Could you show the error?
Here is the error:
` File "
File "C:\Program Files\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 866, in runfile execfile(filename, namespace)
File "C:\Program Files\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile exec(compile(f.read(), filename, 'exec'), namespace)
File "C:/kaggle/thesis/sheraz/Bachelor_thesis_code/Bachelor_thesis/lstm_tsc.py", line 168, in
File "C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 766, in run run_metadata_ptr)
File "C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 951, in _run fetch_handler = _FetchHandler(self._graph, fetches, feed_dict_string)
File "C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 407, in init self._fetch_mapper = _FetchMapper.for_fetch(fetches)
File "C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 230, in for_fetch return _ListFetchMapper(fetch)
File "C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 337, in init self._mappers = [_FetchMapper.for_fetch(fetch) for fetch in fetches]
File "C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 337, in
File "C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 227, in for_fetch (fetch, type(fetch)))
TypeError: Fetch argument None has invalid type <class 'NoneType'>`
It has got to do with the updates in Tensorboard. Will fix it over Christmas break:)
How does it work for you now?
Rob - First, great code/project. Second, I get the same error/same location with the new code. Running Tensorflow r0.12.
Any thoughts?
Has to do with the section sess.run([model.cost, model.merged, model.accuracy], .... model.merged is none as no summaries are added... remove it and the corresponding summ parameter and it should run
Thx
Sent from my iPhone
On Jan 31, 2017, at 2:59 PM, jdewees [email protected] wrote:
Has to do with the section sess.run([model.cost, model.merged, model.accuracy], .... model.merged is none as no summaries are added... remove it and the corresponding summ parameter and it should run
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.