Skip to content

RandomShuffleQueue 'xxx' is closed and has insufficient elements (requested 8, current size 0) #7

@chen-chunling

Description

@chen-chunling

I encountered the following problem when I running the main_combine.py for training, and I following the tutorial for that.

INFO:tensorflow:Error reported to Coordinator: <class 'tensorflow.python.framework.errors_impl.NotFoundError'>, mr_train_tfs/mr_train_slice4848.tfrecords; No such file or directory
	 [[Node: ReaderReadV2 = ReaderReadV2[_device="/job:localhost/replica:0/task:0/device:CPU:0"](TFRecordReaderV2, input_producer)]]
Error reported to Coordinator: <class 'tensorflow.python.framework.errors_impl.NotFoundError'>, mr_train_tfs/mr_train_slice4848.tfrecords; No such file or directory
	 [[Node: ReaderReadV2 = ReaderReadV2[_device="/job:localhost/replica:0/task:0/device:CPU:0"](TFRecordReaderV2, input_producer)]]

tensorflow.python.framework.errors_impl.OutOfRangeError: RandomShuffleQueue '_5_shuffle_batch/random_shuffle_queue' is closed and has insufficient elements (requested 8, current size 0)
	 [[Node: shuffle_batch = QueueDequeueManyV2[component_types=[DT_FLOAT, DT_FLOAT, DT_STRING], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/device:CPU:0"](shuffle_batch/random_shuffle_queue, shuffle_batch/n)]]

It seems that there are some problems with the TFRecord since tf.train.shuffle_batch with code error. Maybe it is the wrong shape or something else.

I don't know how to do with it. Did any one encourter similar problems before? Looking forward to your reply, thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions