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

Don't offer len(dataset) for custom batch_size_fn #192

Merged
merged 7 commits into from
Dec 22, 2017

Conversation

jekbradbury
Copy link
Contributor

Minimally fixes #171. Providing the true length would require iterating through the whole dataset, which the user can do if they know it's OK but which this code can't do in general (since subclasses might have e.g. epoch-specific state) and which is often not desired.

@jekbradbury jekbradbury merged commit bd5aa78 into master Dec 22, 2017
@mthrok mthrok deleted the jekbradbury-batch-size-fn-len branch May 1, 2020 14:45
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.

len of iterator incorrect for dynamic batching
1 participant