RobRomijnders / LSTM_tsc

An LSTM for time-series classification
MIT License
407 stars 146 forks source link

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

Open GDissard opened 7 years ago

GDissard commented 7 years ago

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

RobRomijnders commented 7 years ago

Could you show the error?

zohairzohair4 commented 7 years ago

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

RobRomijnders commented 7 years ago

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

RobRomijnders commented 7 years ago

How does it work for you now?

contango00 commented 7 years ago

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

Any thoughts?

jdewees commented 7 years ago

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

contango00 commented 7 years ago

Thx

Sent from my iPhone

On Jan 31, 2017, at 2:59 PM, jdewees notifications@github.com 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.