Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dataloader2 does not invoke set_seed if used without ReadingService #1107

Closed
sehoffmann opened this issue Mar 23, 2023 · 1 comment
Closed

Comments

@sehoffmann
Copy link

sehoffmann commented Mar 23, 2023

🐛 Describe the bug

See title: My custom datapipe with set_seed does not get invoked when using Dataloader2 (and calling seed(123)). This makes it impossible to fixate seeds when one does not want to use multiprocessing.

This is due to https://github.com/pytorch/data/blob/main/torchdata/dataloader2/dataloader2.py#L210

Versions

e78ab6c

@NivekT
Copy link
Contributor

NivekT commented Mar 23, 2023

I think this is a good call out. The plan is to have SingleProcessReadingService and use that as default.

See #720

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants