tf_records_end_to_end hang in tensorflow 1.4?
fancyerii opened this issue · 1 comments
fancyerii commented
When I run tf_records_end_to_end.py, it hangs in line 101 sess.run([train_op])
foohyfooh commented
The code is missing the following line from the book in after coord = tf.train.Coordinator()
threads = tf.train.start_queue_runners(sess=sess,coord=coord)
and these after the finally block
# Wait for threads to finish
coord.join(threads)
sess.close()
I using TensorFlow 1.7, and hopefully these lines are all you need to solve the problem. If not I recommend upgrading your version of TensorFlow, if possible.