觉得有用的话,欢迎一起讨论相互学习~

tensorflow.python.framework.errors_impl.OutOfRangeError: FIFOQueue
tensorflow.python.framework.errors_impl.OutOfRangeError: FIFOQueuetensorflow.python.framework.errors_impl.OutOfRangeError: FIFOQueuetensorflow.python.framework.errors_impl.OutOfRangeError: FIFOQueue

今天遇到了这个问题

tensorflow.python.framework.errors_impl.OutOfRangeError:
FIFOQueue '_0_input_producer' is closed and has insufficient elements (requested 1, current size 0)
	 [[Node: ReaderReadV2 = ReaderReadV2[_device="/job:localhost/replica:0/task:0/cpu:0"](WholeFileReaderV2, input_producer)]]  

经过查找资料:local变量没有初始化.
初始化变量语句改成:

init_op = tf.group(tf.global_variables_initializer(), tf.local_variables_initializer())
sess.run(init_op)

相关文章:

猜你喜欢
  • 2022-12-23
  • 2021-10-30
  • 2022-12-23
  • 2021-05-04
  • 2022-12-23
  • 2021-10-18
  • 2021-09-11
相关资源
相似解决方案