-
Notifications
You must be signed in to change notification settings - Fork 868
[Docathon][Fix Doc Format No.42] fix prelu_cn API Docs #7549
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-7549.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html |
📚 本次 PR 文档预览链接(点击展开)
|
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
docs/api/paddle/nn/PReLU_cn.rst
Outdated
| - **weight_attr** (ParamAttr,可选) - 指定权重参数属性的对象。默认值为 None,表示使用默认的权重参数属性。具体用法请参见 :ref: ``cn_api_paddle_ParamAttr`` 。 | ||
| - **data_format** (str,可选) – 指定输入的数据格式,输出的数据格式将与输入保持一致,可以是 "NC", "NCL", "NCHW", "NCDHW", "NLC", "NHWC" 或者 "NDHWC"。默认值:"NCHW"。 | ||
| - **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。 | ||
| - **name** (str,可选) - 具体用法请参见 :ref: ``api_guide_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.
api_guide_Name这里不用改成双反引号
docs/api/paddle/nn/PReLU_cn.rst
Outdated
| - **weight_attr** (ParamAttr,可选) - 指定权重参数属性的对象。默认值为 None,表示使用默认的权重参数属性。具体用法请参见 :ref:`cn_api_paddle_ParamAttr` 。 | ||
| - **num_parameters** (int,可选) - 可训练 ``weight`` 数量,支持 2 种输入:1 - 输入中的所有元素使用同一个 ``weight`` 值;输入的通道数 - 在同一个通道中的元素使用同一个 ``weight`` 值。默认为 1。 | ||
| - **init** (float,可选) - ``weight`` 的初始值。默认为 0.25。 | ||
| - **weight_attr** (ParamAttr,可选) - 指定权重参数属性的对象。默认值为 None,表示使用默认的权重参数属性。具体用法请参见 :ref: ``cn_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.
| - **weight_attr** (ParamAttr,可选) - 指定权重参数属性的对象。默认值为 None,表示使用默认的权重参数属性。具体用法请参见 :ref: ``cn_api_paddle_ParamAttr`` 。 | |
| - **weight_attr** (ParamAttr,可选) - 指定权重参数属性的对象。默认值为 None,表示使用默认的权重参数属性。具体用法请参见 :ref: `cn_api_paddle_ParamAttr` 。 |
|
@Echo-Nie老师,我已修改,可以回复一下吗,谢谢老师 |
docs/api/paddle/nn/PReLU_cn.rst
Outdated
| - **weight_attr** (ParamAttr,可选) - 指定权重参数属性的对象。默认值为 None,表示使用默认的权重参数属性。具体用法请参见 :ref:`cn_api_paddle_ParamAttr`。 | ||
| - **data_format** (str,可选) – 指定输入的数据格式,输出的数据格式将与输入保持一致,可以是 "NC", "NCL", "NCHW", "NCDHW", "NLC", "NHWC" 或者 "NDHWC"。默认值:"NCHW"。 | ||
| - **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。 | ||
| - **name** (str,可选) - 具体用法请参见 :ref: `api_guide_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.
ref: 后面不需要空格
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.
已修改,老师@Echo-Nie
docs/api/paddle/nn/PReLU_cn.rst
Outdated
| PReLU(x) = max(0, x) + weight * min(0, x) | ||
| 其中,:math:`x` 为输入的 Tensor。 | ||
| 其中,:math: ``x`` 为输入的 Tensor。 |
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.
这里不用改;请复原
| 其中,:math: ``x`` 为输入的 Tensor。 | |
| 其中,:math:`x` 为输入的 Tensor。 |
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.

修复了prelu_cn文件中的缺少符号问题