RandomShuffleQueue is closed and has insufficient elements

调试昨天出的问题,在读取文件时的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 has insufficient elements)