-
Notifications
You must be signed in to change notification settings - Fork 752
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
No.18 paddle.nn.GLU易用性提升 中文api文档 #6291
Conversation
|
||
GLU | ||
------------------------------- | ||
.. py:class:: paddle.nn.GLU(axis=-1, name=None) |
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.
把输入也放进去
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.
这个nn.GLU是一个layer,定义这个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.
好的
docs/api/paddle/nn/GLU_cn.rst
Outdated
门控线性单元。输入按照给定的维度二等分,其中第一部分被用作内容,第二部分经过一个 sigmoid 函数之后被用作门限。输出是内容和门限的逐元素乘积。更多细节请参考 `Language Modeling with Gated Convolutional Networks <https://arxiv.org/abs/1612.08083>`_ 。 | ||
|
||
.. math:: | ||
GLU(a, b) = a \otimes \sigma(b) |
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.
这里的数据格式是不是有问题。
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
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
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
CI检查出一个错,应该是因为 paddle.nn.Overview 页面里有个API Label 废弃了(paddle.nn.functional.diag_embed),要不顺手修一下吧(狗头) @YibinLiu666
改成
|
这个pr已经merge了,我去我这个 #6305 PR里面改一下 |
PR types
Others
PR changes
Others
Description
新增paddle.nn.GLU中文api文档
PaddlePaddle/Paddle#58632
PaddlePaddle/Paddle#55883