Handle case when buffer_size is larger than total dataset size in shuffle dataset op.
Currently ShuffleDatasetOpBase::GetNext throws a "Attempted to repeat an empty dataset infinitely." if the number of outputs produced from the dataset are < buffer_size. Usually the buffer size is set to <= total dataset size so we never run into this. PiperOrigin-RevId: 182448427
Loading
Please sign in to comment