Skip to content

[Docathon][Add Inplace CN Doc No.8] #7268

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 6 commits into from
Apr 23, 2025
Merged

Conversation

Echo-Nie
Copy link
Contributor

docs/api/paddle/cast__cn.rst
Overview_cn.rst加入cast_

issue:#7090

EN API:
https://www.paddlepaddle.org.cn/documentation/docs/en/develop/api/paddle/cast__en.html

Copy link

paddle-bot bot commented Apr 19, 2025

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

@Echo-Nie
Copy link
Contributor Author

@sunzhongkai588 pls review

@@ -200,6 +200,7 @@ tensor 数学操作原位(inplace)版本
" :ref:`paddle.add_ <cn_api_paddle_add_>` ", "Inplace 版本的 add API,对输入 x 采用 Inplace 策略"
" :ref:`paddle.addmm_ <cn_api_paddle_addmm_>` ", "Inplace 版本的 addmm API,对输入 input 采用 Inplace 策略"
" :ref:`paddle.put_along_axis_ <cn_api_paddle_put_along_axis_>` ", "Inplace 版本的 put_along_axis API,对输入 x 采用 Inplace 策略"
" :ref:`paddle.cast_ <cn_api_paddle_cast_>` ", "Inplace 版本的 cast 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.

应该归位 元素操作 下

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

-------------------------------

.. py:function:: paddle.cast_(x, dtype)
Inplace 版本的 :ref:`cn_api_paddle_cast` 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.

Suggested change
Inplace 版本的 :ref:`cn_api_paddle_cast` API,对输入 `x `采用 Inplace 策略。
Inplace 版本的 :ref:`cn_api_paddle_cast` API,对输入 ``x`` 采用 Inplace 策略。

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@Echo-Nie Echo-Nie requested a review from sunzhongkai588 April 22, 2025 02:32
@Echo-Nie
Copy link
Contributor Author

Echo-Nie commented Apr 22, 2025

预览链接:
Overview: Overview
cast_: cast_
pls review @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 cdc62a2 into PaddlePaddle:develop Apr 23, 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.

3 participants