-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
enable layer group to output a sequence inside it during generation #2871
enable layer group to output a sequence inside it during generation #2871
Conversation
ab4d125
to
4c134c7
Compare
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.
可以把第一个commit单独拿出来先merge了。后面几个commit可以再拆的细一点,方便review。
* sequence in Matrix stored the entire beam search batch's forward pass | ||
* results. | ||
* | ||
* @param isSeq: a flag indicating whetehr the layer to be output of the |
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.
whetehr->whether
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.
done.
* | ||
* @param isSeq: a flag indicating whetehr the layer to be output of the | ||
* RecurrentGradientMachine is a sequence or not | ||
* @param outArgs: all of the the returned Arguments of the forward pass |
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.
the the -> the
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.
done.
fixes #1797
fixes #1269
This PR mainly contains three modifications to RecurrentLayerGroup: