美文网首页
RandomShuffleQueue is closed and

RandomShuffleQueue is closed and

作者: ClarenceHoo | 来源:发表于2017-12-08 17:07 被阅读0次

调试昨天出的问题,在读取文件时的bug报错:
OutOfRangeError (see above for traceback): RandomShuffleQueue '_1_shuffle_batch/random_shuffle_queue' is closed and has insufficient elements (requested 2, current size 0)
[[Node: shuffle_batch = QueueDequeueManyV2[component_types=[DT_INT32, DT_INT32], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](shuffle_batch/random_shuffle_queue, shuffle_batch/n)]]
经过检查,发现是应该在数据读取的时候,恢复数据形状设置不对,导致数据读取错误

相关文章

网友评论

      本文标题:RandomShuffleQueue is closed and

      本文链接:https://www.haomeiwen.com/subject/kwzeixtx.html