tensorflow.python.framework.errors_impl.CancelledError:FIFOQueue' _0_string_input_producer'关闭了

时间:2017-08-07 03:51:55

标签: tensorflow

tensorflow版本1.2.1,使用windows 10-64位,python 3.5,运行我的代码时遇到此错误:

removeGroup

请注意错误消息仅表示:

INFO:tensorflow:Starting standard services.
INFO:tensorflow:Saving checkpoint to path ../train_log\model.ckpt
INFO:tensorflow:Starting queue runners.
INFO:tensorflow:Recording summary at step None.
INFO:tensorflow:Error reported to Coordinator: <class **'tensorflow.python.framework.errors_impl.CancelledError'>, FIFOQueue '_0_string_input_producer' is closed.**
     [[Node: string_input_producer/string_input_producer_EnqueueMany = QueueEnqueueManyV2[Tcomponents=[DT_STRING], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](string_input_producer, string_input_producer/limit_epochs)]]
**INFO:tensorflow:Error reported to Coordinator: <class 'tensorflow.python.framework.errors_impl.CancelledError'>, FIFOQueue '_0_string_input_producer' is closed.**
     [[Node: string_input_producer/string_input_producer_EnqueueMany = QueueEnqueueManyV2[Tcomponents=[DT_STRING], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](string_input_producer, string_input_producer/limit_epochs)]]
Traceback (most recent call last):
  File "D:/study/Lab/python/pycharm/hat_or_not/train/train_CNN.py", line 166, in <module>
    tf.app.run(main)
  File "C:\Python35\lib\site-packages\tensorflow\python\platform\app.py", line 48, in run
    _sys.exit(main(_sys.argv[:1] + flags_passthrough))
  File "D:/study/Lab/python/pycharm/hat_or_not/train/train_CNN.py", line 162, in main
    run_train_model()
  File "D:/study/Lab/python/pycharm/hat_or_not/train/train_CNN.py", line 157, in run_train_model
    coord.join(threads=threads)
  File "C:\Python35\lib\site-packages\tensorflow\python\training\coordinator.py", line 389, in join
    six.reraise(*self._exc_info_to_raise)
  File "C:\Python35\lib\site-packages\six.py", line 686, in reraise
    raise value
  File "C:\Python35\lib\site-packages\tensorflow\python\training\queue_runner_impl.py", line 238, in _run
    enqueue_callable()
  File "C:\Python35\lib\site-packages\tensorflow\python\client\session.py", line 1063, in _single_operation_run
    target_list_as_strings, status, None)
  File "C:\Python35\lib\contextlib.py", line 66, in __exit__
    next(self.gen)
  File "C:\Python35\lib\site-packages\tensorflow\python\framework\errors_impl.py", line 466, in raise_exception_on_not_ok_status
    pywrap_tensorflow.TF_GetCode(status))
**tensorflow.python.framework.errors_impl.CancelledError: FIFOQueue '_0_string_input_producer' is closed.**
     [[Node: string_input_producer/string_input_producer_EnqueueMany = QueueEnqueueManyV2[Tcomponents=[DT_STRING], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](string_input_producer, string_input_producer/limit_epochs)]]

我知道还有其他OutOfRangeError告诉你生产者正确结束:

CancelledError:FIFOQueue '_0_string_input_producer' is closed.

这不是我遇到的问题。 那么,最重要的是什么?任何帮助将非常感谢! 我的演示代码如下:

OutOfRangeError : FIFOQueue '_1_batch/fifo_queue' is closed and has insufficient elements (requested 32, cu rrent size 0)

0 个答案:

没有答案