-
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
add configuration helper for the gated unit. #2865
Conversation
3e128c3
to
087f7eb
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.
LGTM. 小修下。
The example usage is: | ||
|
||
.. code-block:: python | ||
glu = glu_layer(size=128, input=input_layer)) |
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.
这个名字应该是gated_unit_layer吧
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.
The gated unit layer implements a simple gating mechanism over the input. | ||
The input x is first projected into a new space: x', and it is also used to | ||
produce a gate weight: sigma. Element-wise prodict between x' and sigma | ||
is finally returned. |
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.
这里的x, x', sigma也写成公式表示吧。
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.
:type name: basestring | ||
:param gate_attr: Attributes to tune the gate output, for example, error | ||
clipping threshold, dropout and so on. See ExtraLayerAttribute for | ||
more details |
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.
5624行缺句号。下面的也检查下~
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.
087f7eb
to
2acec48
Compare
2acec48
to
ac69f77
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.
LGTM
add configuration helper for the gated unit.