-
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
Polish the english documentation and example of paddle.nn.Linear and paddle.nn.functional.linear #27759
Conversation
…paddle.nn.functional.linear. test=document_fix
Thanks for your contribution! |
5d3f9fc
to
76506de
Compare
76506de
to
2b84b7e
Compare
2b84b7e
to
31756ca
Compare
test=document_fix
31756ca
to
7101c5d
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.
python/paddle/nn/layer/common.py
Outdated
weight_attr (ParamAttr, optional): The attribute for the learnable | ||
weight of this layer. The default value is None and the weight will be | ||
initialized to zero. For detailed information, please refer to | ||
:ref:`api_paddle_fluid_param_attr_ParamAttr` . |
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.
这个改成paddle.ParamAttr
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.
这个我试过,使用api_paddle_ParamAttr当前是不能生成超链接的,这个后续会改么?
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. 先改成paddle.ParamAttr,后续再统一改成超链接。
python/paddle/nn/layer/common.py
Outdated
of this layer. If it is set to False, no bias will be added to the output. | ||
If it is set to None or one kind of ParamAttr, a bias parameter will | ||
be created according to ParamAttr. For detailed information, please refer | ||
to :ref:`api_paddle_fluid_param_attr_ParamAttr` . The default value is 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.
改成paddle.ParamAttr
1c6d362
to
86d4306
Compare
86d4306
to
7ef4659
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
PR types
Others
PR changes
APIs
Describe
paddle.nn.Linear
和paddle.nn.functional.linear
的英文文档和代码示例paddle.fluid.dygraph.Linear
文档中的alias
预览效果
paddle.nn.functional.linear
paddle.nn.Linear