Skip to content

Conversation

GKLeong
Copy link
Contributor

@GKLeong GKLeong commented Mar 19, 2025

描述:
为paddle.nan_to_num_添加中文文档
增加:
paddle.nan_to_num__cn.rst文件
修改:
在Overview_cn.rst中新增新添加的API相关信息(均在“tensor 数学操作原位(inplace)版本”标题下)
issue:#7090
英文文档链接:
https://www.paddlepaddle.org.cn/documentation/docs/en/develop/api/paddle/nan_to_num__en.html

@sunzhongkai588

Copy link

paddle-bot bot commented Mar 19, 2025

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

@CLAassistant
Copy link

CLAassistant commented Mar 19, 2025

CLA assistant check
All committers have signed the CLA.

@GKLeong GKLeong force-pushed the modify-nan-to-num-doc branch from dae8811 to 0701c90 Compare March 19, 2025 13:13
@luotao1 luotao1 added the HappyOpenSource 快乐开源活动issue与PR label Mar 20, 2025
nan\_to\_num\_
-------------------------------

.. py:function:: paddle.nan_to_num_(x: Tensor, nan: float = 0.0, posinf: float | None = None, neginf: float | None = None, name: str | None = None)
Copy link
Collaborator

Choose a reason for hiding this comment

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

参数声明部分不用写类型,参考

.. py:function:: paddle.abs_(x, name=None)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@luotao1 @sunzhongkai588

已经重新进行修改,请审查,谢谢

Copy link
Collaborator

@sunzhongkai588 sunzhongkai588 left a comment

Choose a reason for hiding this comment

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

LGTM

@luotao1 luotao1 merged commit 75b36b1 into PaddlePaddle:develop Mar 27, 2025
2 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.

4 participants