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

Fix MultiEpochSampler __len__() > 0 error #76

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JonFreer
Copy link

Fix for Issue #71

Caused when len(self.data_source) * self.num_epochs < self.start_itr * self.batch_size.

This happens once an entire pass of the dataset has occurred and then you resume training.

Fix: sets start_itr to the relative offset, resets to 0 after run through the dataset.

@szulm
Copy link

szulm commented Dec 19, 2021

thanks

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