TensorFlow:Skipping cancelled enqueue attempt with queue not closed解决办法

coord = tf.train.Coordinator()# 线程管理

threads = tf.train.start_queue_runners(sess=sess, coord=coord)

try:

.......

finally:

        coord.request_stop()

        coord.join(threads)

加上这两句

你可能感兴趣的:(TensorFlow:Skipping cancelled enqueue attempt with queue not closed解决办法)