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 chunksize in utils.py when batch is less than ncpu value #98

Merged
merged 2 commits into from
Jan 19, 2024

Conversation

dlipatov
Copy link
Contributor

Added protection for batch.shape[0]//ncpu to be always greater than zero which happens when training with high number of cpus

Copy link
Owner

@dscripka dscripka left a comment

Choose a reason for hiding this comment

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

Nice fix, thanks!

@dscripka dscripka merged commit dc5a234 into dscripka:main Jan 19, 2024
2 checks passed
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