Skip to content

[Docathon][Add Inplace CN Doc No.10、11] #7114

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

Merged
merged 11 commits into from
Mar 21, 2025

Conversation

ZJhorseloudly
Copy link
Contributor

@ZJhorseloudly ZJhorseloudly commented Mar 16, 2025

PR types
Others

PR changes
Docs

Description
中文文档添加任务
issue: #7090

增加中文文档:
paddle.cumprod__cn
paddle.cumsum__cn

英文文档链接:

序号 API名称 英文文档地址
10 paddle.cumprod_ https://www.paddlepaddle.org.cn/documentation/docs/en/develop/api/paddle/cumprod__en.html
11 paddle.cumsum_ https://www.paddlepaddle.org.cn/documentation/docs/en/develop/api/paddle/cumsum__en.html

@sunzhongkai588

Copy link

paddle-bot bot commented Mar 16, 2025

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

@CLAassistant
Copy link

CLAassistant commented Mar 16, 2025

CLA assistant check
All committers have signed the CLA.

@ZJhorseloudly ZJhorseloudly changed the title [Docathon][Add Inplace CN Doc No.11] [Docathon][Add Inplace CN Doc No.10、11] Mar 16, 2025
@luotao1 luotao1 added the HappyOpenSource 快乐开源活动issue与PR label Mar 17, 2025

更多关于 inplace 操作的介绍请参考 `3.1.3 原位(Inplace)操作和非原位操作的区别`_ 了解详情。

.. _3.1.3 原位(Inplace)操作和非原位操作的区别:
Copy link
Collaborator

Choose a reason for hiding this comment

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

引用参考

.. _3.1.3 原位(Inplace)操作和非原位操作的区别: https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/beginner/tensor_cn.html#id3


更多关于 inplace 操作的介绍请参考 `3.1.3 原位(Inplace)操作和非原位操作的区别`_ 了解详情。

.. _3.1.3 原位(Inplace)操作和非原位操作的区别:
Copy link
Collaborator

Choose a reason for hiding this comment

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

问题相同

Comment on lines 231 to 232
" :ref:`paddle.cumsum_ <cn_api_paddle_cumsum_>` ", "Inplace 版本的 cumsum API,对输入 x 采用 Inplace 策略"
" :ref:`paddle.cumprod_ <cn_api_paddle_cumprod_>` ", "Inplace 版本的 cumprod API,对输入 x 采用 Inplace 策略"
Copy link
Collaborator

Choose a reason for hiding this comment

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

最好按 API 首字母排序,插到 paddle.copysign_ 下面

Copy link
Contributor Author

@ZJhorseloudly ZJhorseloudly left a comment

Choose a reason for hiding this comment

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

@luotao1 @sunzhongkai588

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

@sunzhongkai588
Copy link
Collaborator

解决一下冲突,并使用 pre-commit 以符合代码风格

@ZJhorseloudly
Copy link
Contributor Author

@luotao1 @sunzhongkai588

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

Comment on lines 200 to 211
" :ref:`paddle.divide_ <cn_api_paddle_divide_>` ", "Inplace 版本的 divide API,对输入 x 采用 Inplace 策略"
" :ref:`paddle.equal_ <cn_api_paddle_equal_>` ", "Inplace 版本的 equal API,对输入 x 采用 Inplace 策略"
" :ref:`paddle.cumprod_ <cn_api_paddle_cumprod_>` ", "Inplace 版本的 cumprod API,对输入 x 采用 Inplace 策略"
" :ref:`paddle.cumsum_ <cn_api_paddle_cumsum_>` ", "Inplace 版本的 cumsum API,对输入 x 采用 Inplace 策略"
" :ref:`paddle.exp_ <cn_api_paddle_exp_>` ", "Inplace 版本的 exp API,对输入 x 采用 Inplace 策略"
" :ref:`paddle.expm1_ <cn_api_paddle_expm1_>` ", "Inplace 版本的 expm1 API,对输入 x 采用 Inplace 策略"
" :ref:`paddle.flatten_ <cn_api_paddle_flatten_>` ", "Inplace 版本的 flatten API,对输入 x 采用 Inplace 策略"
" :ref:`paddle.floor_ <cn_api_paddle_floor_>` ", "Inplace 版本的 floor API,对输入 x 采用 Inplace 策略"
" :ref:`paddle.floor_divide_ <cn_api_paddle_floor_divide_>` ", "Inplace 版本的 floor_divide API,对输入 x 采用 Inplace 策略"
" :ref:`paddle.frac_ <cn_api_paddle_frac_>` ", "Inplace 版本的 frac API,对输入 x 采用 Inplace 策略"
" :ref:`paddle.gammaincc_ <cn_api_paddle_gammaincc_>` ", "Inplace 版本的 gammaincc API,对输入 x 采用 Inplace 策略"
" :ref:`paddle.gammainc_ <cn_api_paddle_gammainc_>` ", "Inplace 版本的 gammainc API,对输入 x 采用 Inplace 策略"
" :ref:`paddle.gammaln_ <cn_api_paddle_gammaln_>` ", "Inplace 版本的 gammaln API,对输入 x 采用 Inplace 策略"
" :ref:`paddle.gcd_ <cn_api_paddle_gcd_>` ", "Inplace 版本的 gcd API,对输入 x 采用 Inplace 策略"
Copy link
Collaborator

Choose a reason for hiding this comment

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

这些都是 #7108 新增的,不需要删除

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sunzhongkai588 抱歉之前没有注意,重新进行了恢复。

@ZJhorseloudly
Copy link
Contributor Author

@luotao1 @sunzhongkai588

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

@luotao1 luotao1 merged commit fb97326 into PaddlePaddle:develop Mar 21, 2025
2 checks passed
@ZJhorseloudly ZJhorseloudly deleted the my_docs_change branch March 21, 2025 08:28
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