Skip to content

Validate the batch size before batched transcription - #1712

Closed
nemo-crypto wants to merge 1 commit into
SYSTRAN:masterfrom
nemo-crypto:nemo/batched-positive-size
Closed

nemo-crypto wants to merge 1 commit into
SYSTRAN:masterfrom
nemo-crypto:nemo/batched-positive-size

Conversation

@nemo-crypto

Copy link
Copy Markdown

Summary

A negative batch size makes the decode loop empty, silently producing no segments. A zero batch size raises a range error only after decoding and feature preparation. Reject both at entry with a message that names the invalid parameter.

Verification

Two regression cases fail against master and pass with the fix. The regression, tokenizer, and utility tests passed together (8 tests).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants