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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with DataLoader #20717

Closed
suchithtuple opened this issue May 20, 2019 · 3 comments
Closed

Problem with DataLoader #20717

suchithtuple opened this issue May 20, 2019 · 3 comments

Comments

@suchithtuple
Copy link

suchithtuple commented May 20, 2019

馃悰 Bug

To Reproduce

I have training , validation and test dataset. I have created dataloaders for three of them with training shuffle = True and for valdiation and test shuffle = False . So in one of the code epoch loop contains iterator over train and validation and in another one , epoch loop contains iterator over train , validation and test.

Check the output of the code 1 and 2

  1. https://www.kaggle.com/suchith0312/pytorch-dataloader-testing?scriptVersionId=14425205
  2. https://www.kaggle.com/suchith0312/pytorch-dataloader-testing?scriptVersionId=14425182

Expected behavior

The train id's from output of files must be same but they are different.

Environment

  • PyTorch Version : 1.0.1.post2
  • Python version: 3.6.6
  • CUDA version : 10.0
  • Cudnn version 7.4.2
@ssnl
Copy link
Collaborator

ssnl commented May 20, 2019

Your iteration over test advances rng state.

@ssnl ssnl closed this as completed May 20, 2019
@suchithtuple
Copy link
Author

suchithtuple commented May 21, 2019

Your iteration over test advances rng state.

How can I prevent that or there is no way to get the outputs of two codes same.

@InnovArul
Copy link
Contributor

A possible solution could be: #20749

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

No branches or pull requests

3 participants