Skip to content

[Docathon][Add Inplace CN Doc No.3、4] #7103

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

Closed

Conversation

jiangtao-zha
Copy link

@jiangtao-zha jiangtao-zha commented Mar 13, 2025

描述:
为bitwise_and_添加中文文档
为bitwise_invert_添加中文文档
增加:
bitwise_and__.rst文件
bitwise_invert__.rst文件
修改:
在Overview_cn.rst中新增bitwise_and__相关信息(在“tensor 数学操作原位(inplace)版本”标题下)
在Overview_cn.rst中新增bitwise_invert__相关信息(在“tensor 数学操作原位(inplace)版本”标题下)

issue:#7090

英文文档链接:https://www.paddlepaddle.org.cn/documentation/docs/en/develop/api/paddle/bitwise_and__en.html

@sunzhongkai588

Copy link

paddle-bot bot commented Mar 13, 2025

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

@CLAassistant
Copy link

CLAassistant commented Mar 13, 2025

CLA assistant check
All committers have signed the CLA.

@jiangtao-zha jiangtao-zha changed the title [Docathon][Add Inplace CN Doc No.3] [Docathon][Add Inplace CN Doc No.3、4] Mar 14, 2025
@luotao1 luotao1 added the HappyOpenSource 快乐开源活动issue与PR label Mar 17, 2025
bitwise\_and\_
-------------------------------

.. py:function:: paddle.bitwise_and_(x: Tensor,y: Tensor,name: str | None=None) -> Tensor[source]
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
.. py:function:: paddle.bitwise_and_(x: Tensor,y: Tensor,name: str | None=None) -> Tensor[source]
.. py:function:: paddle.bitwise_and_(x, y, name=None)

参考英文文档的写法
image

bitwise\_invert\_
-------------------------------

.. py:function:: paddle.bitwise_invert_(x: Tensor,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.

参考英文文档的写法

Comment on lines +230 to +231
" :ref:`paddle.bitwise_and_ <cn_api_paddle_bitwise_and_>` ", "Inplace 版本的 bitwise_and API,对输入 x 采用 Inplace 策略"
" :ref:`paddle.bitwise_invert_ <cn_api_paddle_bitwise_invert_>` ", "Inplace 版本的 bitwise_invert 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.

按首字母 b 顺序插在 bernoulli_ 后面

@Echo-Nie
Copy link
Contributor

@luotao1 The PR can be closed due to the following PR is merged:

@luotao1 luotao1 closed this Apr 22, 2025
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