Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/api/paddle/nn/PReLU_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ PReLU 激活层(PReLU Activation Operator)。计算公式如下:

PReLU(x) = max(0, x) + weight * min(0, x)

其中,:math:`x` 为输入的 Tensor。
其中,:math: ``x`` 为输入的 Tensor。
Copy link
Collaborator

Choose a reason for hiding this comment

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

这里不用改;请复原

Suggested change
其中,:math: ``x`` 为输入的 Tensor。
其中,:math:`x` 为输入的 Tensor。

Copy link
Collaborator

Choose a reason for hiding this comment

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

image

此外,PR标题不规范,请参考图中标题进行修改


参数
::::::::::
- **num_parameters** (int,可选) - 可训练`weight`数量,支持 2 种输入:1 - 输入中的所有元素使用同一个`weight`值;输入的通道数 - 在同一个通道中的元素使用同一个`weight`值。默认为 1。
- **init** (float,可选) - `weight`的初始值。默认为 0.25。
- **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`` 。
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
- **weight_attr** (ParamAttr,可选) - 指定权重参数属性的对象。默认值为 None,表示使用默认的权重参数属性。具体用法请参见 :ref: ``cn_api_paddle_ParamAttr`` 。
- **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。
Copy link
Collaborator

Choose a reason for hiding this comment

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

api_guide_Name这里不用改成双反引号


形状
::::::::::
Expand Down