Quantcast
Channel: Replacing tf.placeholder and feed_dict with tf.data API - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by erobertc for Replacing tf.placeholder and feed_dict with tf.data API

The line tf.reset_default_graph() in the constructor of the model from the original code I was given was causing it. Removing that fixed it.

View Article



Answer by David Parks for Replacing tf.placeholder and feed_dict with tf.data...

It took a bit for me to get my head around too. You're on the right track. The entire Dataset definition is just part of the graph. I generally create it as a different class from my Model class and...

View Article

Replacing tf.placeholder and feed_dict with tf.data API

I have an existing TensorFlow model which used a tf.placeholder for the model input and the feed_dict parameter of tf.Session().run to feed in data. Previously the entire dataset was read into memory...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images