-
Notifications
You must be signed in to change notification settings - Fork 839
[Docathon][Update Doc No.21] update activation #7297
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
Conversation
感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-7297.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html |
|
||
.. code-block:: python | ||
|
||
conv2d = fluid.layers.conv2d(input=data, num_filters=2, filter_size=3) | ||
relu1 = fluid.layers.relu(conv2d) | ||
conv2d = nn.functional.conv2d(input=data, num_filters=2, filter_size=3) |
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.functional.conv2d
按照其签名修改一下参数:
paddle.nn.functional.conv2d(x, weight, bias=None, stride=1, padding=0, dilation=1, groups=1, data_format='NCHW', 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.
Done
hardsigmoid hardshrink tanhshrink LogSigmoid不存在激活函数的使用
@DrRyanHuang pls review |
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
Fix
Description
Repair the document according to Paddle 1.8 与 Paddle 2.0 API 映射表
cn_api_fluid_layers_relu
cn_api_paddle_nn_functional_relu
cn_api_fluid_layers_tanh
cn_api_paddle_nn_functional_tanh
cn_api_fluid_layers_sigmoid
cn_api_paddle_nn_functional_sigmoid
cn_api_fluid_layers_elu
cn_api_paddle_nn_functional_elu
cn_api_fluid_layers_relu6
cn_api_paddle_nn_functional_relu6
cn_api_fluid_layers_pow
cn_api_paddle_pow
cn_api_fluid_layers_stanh
cn_api_paddle_stanh
cn_api_fluid_layers_hard_sigmoid
cn_api_paddle_nn_functional_hard_sigmoid
cn_api_fluid_layers_swish
cn_api_paddle_nn_functional_swish
cn_api_fluid_layers_prelu
cn_api_paddle_nn_functional_prelu
cn_api_fluid_layers_leaky_relu
cn_api_paddle_nn_functional_leaky_relu
cn_api_fluid_layers_thresholded_relu
cn_api_paddle_nn_functional_thresholded_relu
cn_api_fluid_layers_maxout
cn_api_paddle_nn_functional_maxout
cn_api_fluid_layers_logsigmoid
cn_api_paddle_nn_functional_logsigmoid
cn_api_fluid_layers_hard_shrink
cn_api_paddle_nn_functional_hard_shrink
cn_api_fluid_layers_softsign
cn_api_paddle_nn_functional_softsign
cn_api_fluid_layers_softplus
cn_api_paddle_nn_functional_softplus
cn_api_fluid_layers_tanh_shrink
cn_api_paddle_nn_functional_tanh_shrink
cn_api_fluid_layers_softshrink
cn_api_paddle_nn_functional_softshrink
cn_api_fluid_layers_exp
cn_api_paddle_exp
The following APIs have been removed
cn_api_fluid_layers_brelu
cn_api_fluid_layers_soft_relu
The following APIs have been renamed
The only difference from before is that the underscores have been removed:
issue: #71203
@DrRyanHuang