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 buffer size of DynamicBucketingSampler #1468

Merged
merged 5 commits into from
Jan 20, 2024

Conversation

yfyeung
Copy link
Collaborator

@yfyeung yfyeung commented Jan 19, 2024

When max_duration is larger than 1500, DynamicBucketingSampler will cause ZeroDivisionError: division by zero.

@yfyeung yfyeung changed the title Fix buffer size Fix buffer size of DynamicBucketingSampler Jan 19, 2024
Copy link
Collaborator

@JinZr JinZr left a comment

Choose a reason for hiding this comment

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

LGTM 🤔

@JinZr JinZr merged commit 5dfc3ed into k2-fsa:master Jan 20, 2024
54 checks passed
@yfyeung yfyeung deleted the fix/buffer_size branch January 21, 2024 12:26
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