468414 (1) [Avatar] Offline
#1
Hi,

I was getting tons of errors of this sort when trying to feed a dictionary to a placeholder.


InvalidArgumentError: You must feed a value for placeholder tensor 'Placeholder_54' with dtype float [[Node: Placeholder_54 = Placeholderdtype=DT_FLOAT, shape=[], _device="/job:localhost/replica:0/task:0/cpu:0"]] Caused by op u'Placeholder_54':


I'm running from within a Jupyter notebook... tried everything then found a tip to run:

tf.reset_default_graph()

at the top of the cell. This fixed the issue. This should be added to the code as it took me a several hours over a the course of a few days to hunt this down.

Nishant Shukla (52) [Avatar] Offline
#2
Interesting issue. I was not able to reproduce this error.

Does restarting the kernel solve the issue for you as well?

image