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

Changing initialization of max_batch_size #20

Merged
merged 1 commit into from
Dec 6, 2024
Merged

Conversation

ancestor-mithril
Copy link
Owner

@ancestor-mithril ancestor-mithril commented Dec 6, 2024

Previous behavior: If max_batch_size is None or greater than the dataset length, it is set to the dataset length.
Current behavior: If max_batch_size is None, it is set to the dataset length + 1, if the dataset has a length. Otherwise, it is set to 1.

This fixes the case in which the dataset does not have a length available, or when the length of the dataset is dynamic and can be changed by the user.

  • Updated the documentation to reflect the changes.

Previous behavior: if None or greater than the dataset length, it is set to the dataset length
Current behavior: If None, it is set to the dataset length + 1, if the dataset has a length. Otherwise, it is set to 1
@ancestor-mithril ancestor-mithril merged commit c8aec06 into master Dec 6, 2024
3 checks passed
@ancestor-mithril ancestor-mithril deleted the dev branch December 6, 2024 08:12
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.

1 participant