出现这个错误的原因是局部变量没有初始化,tensorflow中局部变量初始化函数为tf.local_variables_initializer(),全局变量初始化函数为tf.global_variables_initializer(),如下面的代码,

FIFOQueue '_2_batch/fifo_queue' is closed and has insufficient elements (requested 3, current size 0

去掉局部变量初始化的注释后程序就能运行,

FIFOQueue '_2_batch/fifo_queue' is closed and has insufficient elements (requested 3, current size 0

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-04
  • 2022-12-23
  • 2021-10-07
  • 2022-12-23
  • 2021-11-28
  • 2022-12-23
猜你喜欢
  • 2021-10-18
  • 2021-09-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-16
相关资源
相似解决方案