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 generation with --no-early-stop #627

Closed
wants to merge 1 commit into from
Closed

Fix generation with --no-early-stop #627

wants to merge 1 commit into from

Conversation

mryab
Copy link
Contributor

@mryab mryab commented Apr 9, 2019

Because the size of unfinalized_scores is equal to current bsz and not initial batch size, we need to index it by unfin_idx instead of sent in is_finished.
Fixes #588.

@freewym
Copy link
Contributor

freewym commented Apr 21, 2019

Is it ready to merge?

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@myleott has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@myleott
Copy link
Contributor

myleott commented Apr 22, 2019

Yes, merging it now.

@facebook-github-bot
Copy link
Contributor

@myleott merged this pull request in fa52d20.

yfyeung pushed a commit to yfyeung/fairseq that referenced this pull request Dec 6, 2023
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.

Error when --no-early-stop is set during beam search for translation
4 participants