Quantcast
Viewing all articles
Browse latest Browse all 9

Answer by Ashar Siddiqui for Tensorflow: Cannot interpret feed_dict key as Tensor

In my case, I was using loop while calling in CNN multiple times, I fixed my problem by doing the following:

# Declare this as global:

global graph

graph = tf.get_default_graph()

# Then just before you call in your model, use this

with graph.as_default():

# call you models here

Note: In my case too, the app ran fine for the first time and then gave the error above. Using the above fix solved the problem.

Hope that helps.


Viewing all articles
Browse latest Browse all 9

Trending Articles



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