Skip to content

sample.py: Set minimum batch size to 1#216

Merged
sarahnlewis merged 2 commits into
microsoft:mainfrom
akors:fix-batch_size
May 14, 2026
Merged

sample.py: Set minimum batch size to 1#216
sarahnlewis merged 2 commits into
microsoft:mainfrom
akors:fix-batch_size

Conversation

@akors
Copy link
Copy Markdown
Contributor

@akors akors commented May 13, 2026

When the sequence is too long and the batch_size_100 argument too small, batch_size is calculated as 0, which does not make sense.

Fixes issue #215

When the sequence is too long and the batch_size_100 argument too small,
batch_size is calculated as 0, which does not make sense.

Fixes issue microsoft#215
Copy link
Copy Markdown
Collaborator

@sarahnlewis sarahnlewis left a comment

Choose a reason for hiding this comment

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

Thank you!

@sarahnlewis sarahnlewis merged commit 1350316 into microsoft:main May 14, 2026
7 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