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

Imperative transfer gru unit #16095

Merged
merged 6 commits into from
Mar 12, 2019
Merged

Conversation

velconia
Copy link
Collaborator

@velconia velconia commented Mar 7, 2019

  1. transfer gru unit layer
  2. support imperative check in op test's check_output
  3. Add Layers UT for gru

@velconia velconia requested a review from JiabinYang March 7, 2019 02:16
@velconia velconia changed the title Transfer gru unit Imperative transfer gru unit Mar 7, 2019
panyx0718
panyx0718 previously approved these changes Mar 11, 2019
and concatenation of :math:`u_t`, :math:`r_t` and :math:`m_t`.

Args:
input (Variable): The fc transformed input value of current step.
Copy link
Contributor

Choose a reason for hiding this comment

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

add name_scope?

Copy link
Collaborator Author

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

Copy link
Collaborator Author

@velconia velconia Mar 12, 2019

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(
Copy link
Contributor

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.

Copy link
Collaborator Author

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
@velconia velconia merged commit d4e8c99 into PaddlePaddle:develop Mar 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants