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

Beam search operator #5018

Closed
Superjomn opened this issue Oct 23, 2017 · 0 comments · Fixed by #5052
Closed

Beam search operator #5018

Superjomn opened this issue Oct 23, 2017 · 0 comments · Fixed by #5052

Comments

@Superjomn
Copy link
Contributor

According the design of sequence decoder, a beam search operator is needed.

It takes two inputs:

  • topk_ids: candidate id set,
  • topk_generation_scores: the scores of the prefixes with the candidates appended.
    and it has two outputs:
  • selected_ids: the selected candidate id set,
  • selected_translation_scores: the corresponding scores of the selected prefixes with candidates appended.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging a pull request may close this issue.

2 participants