tensorflow / tensorflow/datasets

Custom dataset: disable_shuffling=True not working

Open
#3,285 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help
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?

Screen Shot 2021-06-04 at 2 00 07 PM

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.