Skip to content

Conversation

sarthakpati
Copy link
Member

Fixes issue #(Enter issue number here)

Proposed Changes

loader = DataLoader(data, shuffle=True, batch_size=self.batch_size)
loader = DataLoader(data, shuffle=True, batch_size=self.batch_size, worker_init_fn=seed_worker)
else:
loader = DataLoader(data, shuffle=False, batch_size=1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The validation loader should also have worker_init_fn=seed_worker, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does this look? 😄

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 this pull request may close these issues.

2 participants