Tensorflow Enqueue operation was cancelled

前端 未结 3 1655
甜味超标
甜味超标 2021-02-04 10:41

I had built a convolutional neural network in tensorflow. It is trained and now I am unpacking it and performing evaluations.

import main
import Process
import I         


        
3条回答
  •  Happy的楠姐
    2021-02-04 10:56

    Update from chat -- the program runs successfully, and the messages that are printed are due to Python killing threads while they are running as the process exits.

    The messages are harmless but it's possible to avoid them by stopping threads manually using pattern below.

    coord = tf.train.Coordinator()
    threads = tf.train.start_queue_runners(sess=sess, coord=coord)
    
    coord.request_stop()
    coord.join(threads)
    

提交回复
热议问题