tensorflow / tensorflow/datasets
Custom dataset: disable_shuffling=True not working
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 1.6k
- Avg merge
- 3h 54m
- Merged PRs (30d)
- 1
Description
I followed the example here (https://www.tensorflow.org/datasets/add_dataset#maintain_dataset_order) in preparing a custom dataset.
When disable_shuffling = False, the dataset gets generated without error. But when setting = True, I get the following error (see below). How to resolve this?

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked TFDS documentation example for maintaining dataset order and reproduce the custom-dataset build with disable_shuffling set to True. Inspect the reported error in the attached screenshot and compare the behavior with disable_shuffling set to False; done means the custom dataset builds successfully while preserving the intended order.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, tensorflow
- Domain
- data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100