Skip to content

Conversation

@www2006hhh
Copy link
Contributor

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

@CLAassistant
Copy link

CLAassistant commented Oct 12, 2025

CLA assistant check
All committers have signed the CLA.

@paddle-bot
Copy link

paddle-bot bot commented Oct 12, 2025

感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-7549.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html
预览工具的更多说明,请参考:飞桨文档预览工具

@luotao1 luotao1 added the HappyOpenSource 快乐开源活动issue与PR label Oct 13, 2025
@github-actions
Copy link

github-actions bot commented Oct 13, 2025

📚 本次 PR 文档预览链接(点击展开)
ℹ️ 预览提醒
请等待 Docs-NEW 流水线运行完成后再点击预览链接,否则可能会看到旧版本内容或遇到链接无法访问的情况。

Copy link
Collaborator

@mattheliu mattheliu left a comment

Choose a reason for hiding this comment

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

LGTM

- **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这里不用改成双反引号

- **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` 。

@www2006hhh www2006hhh marked this pull request as draft October 13, 2025 13:31
@www2006hhh www2006hhh marked this pull request as ready for review October 13, 2025 13:44
@www2006hhh
Copy link
Contributor Author

@Echo-Nie老师,我已修改,可以回复一下吗,谢谢老师

- **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.

ref: 后面不需要空格

Copy link
Contributor Author

Choose a reason for hiding this comment

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

已修改,老师@Echo-Nie

@Echo-Nie Echo-Nie changed the title [Docathon][Fix Doc Format No.42 [Docathon][Fix Doc Format No.42] fix prelu_cn API Docs Oct 17, 2025
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标题不规范,请参考图中标题进行修改

@luotao1 luotao1 merged commit 980a316 into PaddlePaddle:develop Oct 17, 2025
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor HappyOpenSource 快乐开源活动issue与PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants