-
Notifications
You must be signed in to change notification settings - Fork 297
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 decode_stream.py #1208
Fix decode_stream.py #1208
Conversation
@@ -79,7 +79,7 @@ def __init__( | |||
self.pad_length = 7 + 2 * 3 | |||
|
|||
if params.decoding_method == "greedy_search": | |||
self.hyp = [params.blank_id] * params.context_size | |||
self.hyp = [-1] * (params.context_size - 1) + [params.blank_id] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also update Line 87
@csukuangfj I think the changes has not been made for modified_beam_search. Should I open a PR to fix it ? |
Yes, please. Thanks! |
@csukuangfj Great, will do by tomorrow |
No description provided.