Skip to content

[programs] Fix infinite loop when empty input is passed to trainer#3081

Merged
terrelln merged 1 commit into
facebook:devfrom
terrelln:dict-load-zero
Mar 2, 2022
Merged

[programs] Fix infinite loop when empty input is passed to trainer#3081
terrelln merged 1 commit into
facebook:devfrom
terrelln:dict-load-zero

Conversation

@terrelln

@terrelln terrelln commented Mar 2, 2022

Copy link
Copy Markdown
Contributor

When an empty input file was passed to the dictionary trainer, it would infinite loop.
The added test case exposes the bug, and is fixed with this PR.

When an empty input file was passed to the dictionary trainer, it would infinite loop.
The added test case exposes the bug, and is fixed with this PR.
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.

3 participants