tensorflow---错误input

错误提示:

OutOfRangeError (see above for traceback): RandomShuffleQueue '_1_shuffle_batch/random_shuffle_queue' is closed and has insufficient elements (requested 128, current size 0)
     [[Node: shuffle_batch = QueueDequeueManyV2[component_types=[DT_FLOAT, DT_INT32], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/device:CPU:0"](shuffle_batch/random_shuffle_queue, shuffle_batch/n)]]

是数据维度,或者其他的不把匹配,请仔细检查

我这里的原因是因为我数据在写书tf.record的时候,我使用的数据类型float32,

而我在读取tf.record的时候我使用来float32,如下所示:

img = tf.decode_raw(features['img_raw'], tf.float32) img = tf.reshape(img, [33, 33, 4])

所以一定要仔细检查

猜你喜欢

转载自blog.csdn.net/zxyhhjs2017/article/details/82591216