Quantcast
Channel: Tensorflow: Cannot interpret feed_dict key as Tensor - Stack Overflow
Viewing all articles
Browse latest Browse all 9

Answer by dopexxx for Tensorflow: Cannot interpret feed_dict key as Tensor

$
0
0

The error message TypeError: Cannot interpret feed_dict key as Tensor: Tensor Tensor("...", dtype=dtype) is not an element of this graph can also arise in case you run a session outside of the scope of its with statement. Consider:

with tf.Session() as sess:
    sess.run(logits, feed_dict=feed_dict) 

sess.run(logits, feed_dict=feed_dict)

If logits and feed_dict are defined properly, the first sess.run command will execute normally, but the second will raise the mentioned error.


Viewing all articles
Browse latest Browse all 9

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>