-
Notifications
You must be signed in to change notification settings - Fork 765
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
【PaddlePaddle Hackathon 2】16、doc for rrelu #4725
Conversation
Thanks for your contribution! |
docs/api/paddle/nn/RReLU_cn.rst
Outdated
参数 | ||
:::::::::: | ||
- lower (float, 可选) - 负值斜率的随机值范围下限,`lower`包含在范围中。支持的数据类型:float。默认值为0.125。 | ||
- upper (float, 可选) - 负值斜率的随机值范围上限,`upper`包含在范围中。支持的数据类型:float。默认值为0.333。 |
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.
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.
完成
docs/api/paddle/nn/RReLU_cn.rst
Outdated
ax & \text{ otherwise } | ||
\end{cases} | ||
|
||
其中,: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.
句尾标点符号
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.
完成
:::::::::: | ||
- lower (float, 可选) - 负值斜率的随机值范围下限,`lower`包含在范围中。支持的数据类型:float。默认值为0.125。 | ||
- upper (float, 可选) - 负值斜率的随机值范围上限,`upper`包含在范围中。支持的数据类型:float。默认值为0.333。 | ||
- training (bool): 标记是否为训练阶段。 默认: True。 |
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.
:
--> -
,
--> ,
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.
完成
\end{cases} | ||
|
||
其中,: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.
中英文需要保持一致,英文部分有附参考论文
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。 | ||
|
||
参数 | ||
:::::::::: |
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.
参数缺少x的介绍?源码中是有5个参数的,可以参考:https://github.com/PaddlePaddle/docs/blob/develop/docs/templates/common_docs.py#L40
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.
完成
:::::::::: | ||
- lower (float,可选) - 负值斜率的随机值范围下限,`lower` 包含在范围中。支持的数据类型:float。默认值为0.125。 | ||
- upper (float,可选) - 负值斜率的随机值范围上限,`upper` 包含在范围中。支持的数据类型:float。默认值为0.333。 | ||
- training (bool) - 标记是否为训练阶段。 默认: True。 |
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.
training有默认值,所以是可选参数
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.
完成
- lower (float,可选) - 负值斜率的随机值范围下限,`lower` 包含在范围中。支持的数据类型:float。默认值为0.125。 | ||
- upper (float,可选) - 负值斜率的随机值范围上限,`upper` 包含在范围中。支持的数据类型:float。默认值为0.333。 | ||
- training (bool) - 标记是否为训练阶段。 默认: True。 | ||
- name (str, 可选) - 操作的名称(可选,默认值为None)。更多信息请参见 :ref:`api_guide_Name`。 |
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.
,
--> ,
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.
完成
docs/api/paddle/nn/RReLU_cn.rst
Outdated
形状: | ||
:::::::::: | ||
- input: 任意形状的Tensor,默认数据类型为float32。 | ||
- output: 和input具有相同形状的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.
- 形状后面不需要加
:
:
-->-
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.
完成
docs/api/paddle/nn/RReLU_cn.rst
Outdated
:::::::::: | ||
- lower (float,可选) - 负值斜率的随机值范围下限,`lower` 包含在范围中。支持的数据类型:float。默认值为0.125。 | ||
- upper (float,可选) - 负值斜率的随机值范围上限,`upper` 包含在范围中。支持的数据类型:float。默认值为0.333。 | ||
- name (str, 可选) - 操作的名称(可选,默认值为None)。更多信息请参见 :ref:`api_guide_Name`。 |
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.
,
--> ,
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.
完成
docs/api/paddle/nn/RReLU_cn.rst
Outdated
|
||
参数 | ||
:::::::::: | ||
- lower (float,可选) - 负值斜率的随机值范围下限,`lower` 包含在范围中。支持的数据类型:float。默认值为0.125。 |
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.
参数需要加粗,参考:
- lower (float,可选) - 负值斜率的随机值范围下限,
lower
包含在范围中。支持的数据类型:float。默认值为0.125。
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
增加nn.RReLU和nn.functional.rrelu的中文文档。
该算子的实现PR为PaddlePaddle/Paddle#41823
PADDLEPADDLE_PR=41823