-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Imperative transfer gru unit #16095
Imperative transfer gru unit #16095
Conversation
velconia
commented
Mar 7, 2019
•
edited
Loading
edited
- transfer gru unit layer
- support imperative check in op test's check_output
- Add Layers UT for gru
test=develop
… transfer_gru_unit
… transfer_gru_unit test=develop
… transfer_gru_unit
test=develop
and concatenation of :math:`u_t`, :math:`r_t` and :math:`m_t`. | ||
|
||
Args: | ||
input (Variable): The fc transformed input value of current step. |
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.
add name_scope?
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.
OK, I'll add it in next PR
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
self._dtype = dtype | ||
size = size // 3 | ||
# create weight | ||
self._weight = self.create_parameter( |
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.
I'm thinking. maybe we should make parameter public so people can use it.
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.
Can't agree more~
test=develop