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

Polish the english documentation and example of paddle.nn.Linear and paddle.nn.functional.linear #27759

Merged
merged 5 commits into from
Oct 10, 2020

Conversation

Xreki
Copy link
Contributor

@Xreki Xreki commented Oct 6, 2020

PR types

Others

PR changes

APIs

Describe

  • 修复paddle.nn.Linearpaddle.nn.functional.linear的英文文档和代码示例
  • 移除paddle.fluid.dygraph.Linear文档中的alias

预览效果

  • paddle.nn.functional.linear
    image

  • paddle.nn.Linear
    image
    image

…paddle.nn.functional.linear.

test=document_fix
@paddle-bot-old
Copy link

paddle-bot-old bot commented Oct 6, 2020

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

test=document_fix
Copy link
Contributor

@wzzju wzzju left a comment

Choose a reason for hiding this comment

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

LGTM.

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` .
Copy link
Contributor

Choose a reason for hiding this comment

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

这个改成paddle.ParamAttr

Copy link
Contributor Author

Choose a reason for hiding this comment

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

这个我试过,使用api_paddle_ParamAttr当前是不能生成超链接的,这个后续会改么?

Copy link
Contributor Author

@Xreki Xreki Oct 9, 2020

Choose a reason for hiding this comment

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

Done. 先改成paddle.ParamAttr,后续再统一改成超链接。

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

Choose a reason for hiding this comment

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

改成paddle.ParamAttr

Copy link
Contributor

@jzhang533 jzhang533 left a comment

Choose a reason for hiding this comment

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

lgtm

@Xreki Xreki merged commit 836ee3b into PaddlePaddle:develop Oct 10, 2020
@Xreki Xreki deleted the api/fix_examples branch October 10, 2020 00:57
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.

3 participants