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 documentation and examples of paddle.static.nn.fc. #27768

Merged
merged 4 commits into from
Oct 10, 2020

Conversation

Xreki
Copy link
Contributor

@Xreki Xreki commented Oct 8, 2020

PR types

Others

PR changes

APIs

Describe

  • 删除paddle.fluid.layers.fc -> paddle.static.nn.fc的alias,重新实现paddle.static.nn.fc接口,修改英文文档和示例代码,改成使用2.0API。

  • 修改输入参数名:

    • paddle.fluid.layers.fc函数定义

      paddle.fluid.layers.fc(inputsizenum_flatten_dims=1param_attr=Nonebias_attr=Noneact=Nonename=None)
    • paddle.static.nn.fc函数定义

      paddle.static.nn.fc(x, size, num_flatten_dims=1, weight_attr=None, bias_attr=None, activation=None, name=None)
  • 文档预览效果
    image

@paddle-bot-old
Copy link

paddle-bot-old bot commented Oct 8, 2020

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

Copy link
Contributor

@lanxianghit lanxianghit left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@TCChenlong TCChenlong 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 bf187c7 into PaddlePaddle:develop Oct 10, 2020
@Xreki Xreki deleted the api/fc branch October 10, 2020 07:58
chen-zhiyu pushed a commit to chen-zhiyu/Paddle that referenced this pull request Oct 15, 2020
…Paddle#27768)

* Reimplement paddle.static.nn.fc, mainly change the parameters and English documentation.

* Polish the documentation format.
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