LSTM_tsc icon indicating copy to clipboard operation
LSTM_tsc copied to clipboard

TypeError: Fetch argument None has invalid type <class 'NoneType'>

Open GDissard opened this issue 8 years ago • 7 comments

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

GDissard avatar Nov 03 '16 14:11 GDissard

Could you show the error?

RobRomijnders avatar Nov 04 '16 13:11 RobRomijnders

Here is the error: ` File "", line 1, in

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 result = sess.run([cost,merged,accuracy],feed_dict = {input_data: X_batch, targets: y_batch, keep_prob:1})

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 self._mappers = [_FetchMapper.for_fetch(fetch) for fetch in fetches]

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'>`

zohairzohair4 avatar Dec 22 '16 14:12 zohairzohair4

It has got to do with the updates in Tensorboard. Will fix it over Christmas break:)

RobRomijnders avatar Dec 22 '16 15:12 RobRomijnders

How does it work for you now?

RobRomijnders avatar Jan 02 '17 13:01 RobRomijnders

Rob - First, great code/project. Second, I get the same error/same location with the new code. Running Tensorflow r0.12.

Any thoughts?

contango00 avatar Jan 09 '17 14:01 contango00

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

jdewees avatar Jan 31 '17 19:01 jdewees

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.

contango00 avatar Jan 31 '17 21:01 contango00