Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GDissard opened this issue Nov 3, 2016 · 7 comments
Open

Comments

@GDissard
Copy link

GDissard commented Nov 3, 2016

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
Copy link
Owner

Could you show the error?

@zohairzohair4
Copy link

zohairzohair4 commented Dec 22, 2016

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
Copy link
Owner

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

@RobRomijnders
Copy link
Owner

How does it work for you now?

@contango00
Copy link

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

Any thoughts?

@jdewees
Copy link

jdewees commented Jan 31, 2017

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
Copy link

contango00 commented Jan 31, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants