From 6f1b0a9cdff4a0beddabb8725406bc61f289a126 Mon Sep 17 00:00:00 2001 From: Rorschach730 <1027559304@qq.com> Date: Sat, 22 Mar 2025 14:52:14 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86bitwise=5Fnot=5F?= =?UTF-8?q?=E5=92=8Cbitwise=5For=5F=E4=B8=AD=E6=96=87=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/paddle/Overview_cn.rst | 2 ++ docs/api/paddle/bitwise_not__cn.rst | 11 +++++++++++ docs/api/paddle/bitwise_or__cn.rst | 11 +++++++++++ 3 files changed, 24 insertions(+) create mode 100644 docs/api/paddle/bitwise_not__cn.rst create mode 100644 docs/api/paddle/bitwise_or__cn.rst diff --git a/docs/api/paddle/Overview_cn.rst b/docs/api/paddle/Overview_cn.rst index 03570a2b912..15ff3f5f880 100755 --- a/docs/api/paddle/Overview_cn.rst +++ b/docs/api/paddle/Overview_cn.rst @@ -187,6 +187,8 @@ tensor 数学操作原位(inplace)版本 " :ref:`paddle.remainder_ ` ", "Inplace 版本的 remainder API,对输入 x 采用 Inplace 策略" " :ref:`paddle.abs_ ` ", "Inplace 版本的 abs API,对输入 x 采用 Inplace 策略" + " :ref:`paddle.bitwise_not_ ` ", "Inplace 版本的 bitwise_not API,对输入 x 采用 Inplace 策略" + " :ref:`paddle.bitwise_or_ ` ", "Inplace 版本的 bitwise_or API,对输入 x 采用 Inplace 策略" " :ref:`paddle.bernoulli_ ` ", "Inplace 版本的 bernoulli API,对输入 x 采用 Inplace 策略" " :ref:`paddle.tanh_ ` ", "Inplace 版本的 tanh API,对输入 x 采用 Inplace 策略" " :ref:`paddle.erf_ ` ", "Inplace 版本的 erf API,对输入 x 采用 Inplace 策略" diff --git a/docs/api/paddle/bitwise_not__cn.rst b/docs/api/paddle/bitwise_not__cn.rst new file mode 100644 index 00000000000..482db966ad0 --- /dev/null +++ b/docs/api/paddle/bitwise_not__cn.rst @@ -0,0 +1,11 @@ +.. _cn_api_paddle_bitwise_not_: + +bitwise_not\_ +------------------------------- + +.. py:function:: paddle.bitwise_not_(x: Tensor, out: Tensor | None = None, name: str | None = None) +Inplace 版本的 :ref:`cn_api_paddle_bitwise_not` API,对输入 `x` 采用 Inplace 策略。 + +更多关于 inplace 操作的介绍请参考 `3.1.3 原位(Inplace)操作和非原位操作的区别`_ 了解详情。 + +.. _3.1.3 原位(Inplace)操作和非原位操作的区别: https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/beginner/tensor_cn.html#id3 \ No newline at end of file diff --git a/docs/api/paddle/bitwise_or__cn.rst b/docs/api/paddle/bitwise_or__cn.rst new file mode 100644 index 00000000000..1a5afd34463 --- /dev/null +++ b/docs/api/paddle/bitwise_or__cn.rst @@ -0,0 +1,11 @@ +.. _cn_api_paddle_bitwise_or_: + +bitwise_or\_ +------------------------------- + +.. py:function:: paddle.bitwise_or_(x: Tensor, y: Tensor, name: str | None = None) -> Tensor +Inplace 版本的 :ref:`cn_api_paddle_bitwise_or` API,对输入 `x` 采用 Inplace 策略。 + +更多关于 inplace 操作的介绍请参考 `3.1.3 原位(Inplace)操作和非原位操作的区别`_ 了解详情。 + +.. _3.1.3 原位(Inplace)操作和非原位操作的区别: https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/beginner/tensor_cn.html#id3 \ No newline at end of file From 58385649a4cf8ae93da74e5631c0dfffcb87770c Mon Sep 17 00:00:00 2001 From: Rorschach730 <1027559304@qq.com> Date: Sat, 22 Mar 2025 14:52:14 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86bitwise=5Fnot=5F?= =?UTF-8?q?=E5=92=8Cbitwise=5For=5F=E4=B8=AD=E6=96=87=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/paddle/Overview_cn.rst | 2 ++ docs/api/paddle/bitwise_not__cn.rst | 11 +++++++++++ docs/api/paddle/bitwise_or__cn.rst | 11 +++++++++++ 3 files changed, 24 insertions(+) create mode 100644 docs/api/paddle/bitwise_not__cn.rst create mode 100644 docs/api/paddle/bitwise_or__cn.rst diff --git a/docs/api/paddle/Overview_cn.rst b/docs/api/paddle/Overview_cn.rst index 03570a2b912..15ff3f5f880 100755 --- a/docs/api/paddle/Overview_cn.rst +++ b/docs/api/paddle/Overview_cn.rst @@ -187,6 +187,8 @@ tensor 数学操作原位(inplace)版本 " :ref:`paddle.remainder_ ` ", "Inplace 版本的 remainder API,对输入 x 采用 Inplace 策略" " :ref:`paddle.abs_ ` ", "Inplace 版本的 abs API,对输入 x 采用 Inplace 策略" + " :ref:`paddle.bitwise_not_ ` ", "Inplace 版本的 bitwise_not API,对输入 x 采用 Inplace 策略" + " :ref:`paddle.bitwise_or_ ` ", "Inplace 版本的 bitwise_or API,对输入 x 采用 Inplace 策略" " :ref:`paddle.bernoulli_ ` ", "Inplace 版本的 bernoulli API,对输入 x 采用 Inplace 策略" " :ref:`paddle.tanh_ ` ", "Inplace 版本的 tanh API,对输入 x 采用 Inplace 策略" " :ref:`paddle.erf_ ` ", "Inplace 版本的 erf API,对输入 x 采用 Inplace 策略" diff --git a/docs/api/paddle/bitwise_not__cn.rst b/docs/api/paddle/bitwise_not__cn.rst new file mode 100644 index 00000000000..e56117ce254 --- /dev/null +++ b/docs/api/paddle/bitwise_not__cn.rst @@ -0,0 +1,11 @@ +.. _cn_api_paddle_bitwise_not_: + +bitwise_not\_ +------------------------------- + +.. py:function:: paddle.bitwise_not_(x, out = None, name = None) +Inplace 版本的 :ref:`cn_api_paddle_bitwise_not` API,对输入 `x` 采用 Inplace 策略。 + +更多关于 inplace 操作的介绍请参考 `3.1.3 原位(Inplace)操作和非原位操作的区别`_ 了解详情。 + +.. _3.1.3 原位(Inplace)操作和非原位操作的区别: https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/beginner/tensor_cn.html#id3 \ No newline at end of file diff --git a/docs/api/paddle/bitwise_or__cn.rst b/docs/api/paddle/bitwise_or__cn.rst new file mode 100644 index 00000000000..5c882026440 --- /dev/null +++ b/docs/api/paddle/bitwise_or__cn.rst @@ -0,0 +1,11 @@ +.. _cn_api_paddle_bitwise_or_: + +bitwise_or\_ +------------------------------- + +.. py:function:: paddle.bitwise_or_(x, y, name = None) +Inplace 版本的 :ref:`cn_api_paddle_bitwise_or` API,对输入 `x` 采用 Inplace 策略。 + +更多关于 inplace 操作的介绍请参考 `3.1.3 原位(Inplace)操作和非原位操作的区别`_ 了解详情。 + +.. _3.1.3 原位(Inplace)操作和非原位操作的区别: https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/beginner/tensor_cn.html#id3 \ No newline at end of file From 6bf9becb47d2a3e9a2ab3b7accc77f4079969d02 Mon Sep 17 00:00:00 2001 From: Rorschach730 <1027559304@qq.com> Date: Wed, 2 Apr 2025 21:11:57 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9Overview=5Fcn.rst?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/paddle/Overview_cn.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/api/paddle/Overview_cn.rst b/docs/api/paddle/Overview_cn.rst index 15ff3f5f880..036e71514d6 100755 --- a/docs/api/paddle/Overview_cn.rst +++ b/docs/api/paddle/Overview_cn.rst @@ -189,6 +189,7 @@ tensor 数学操作原位(inplace)版本 " :ref:`paddle.abs_ ` ", "Inplace 版本的 abs API,对输入 x 采用 Inplace 策略" " :ref:`paddle.bitwise_not_ ` ", "Inplace 版本的 bitwise_not API,对输入 x 采用 Inplace 策略" " :ref:`paddle.bitwise_or_ ` ", "Inplace 版本的 bitwise_or API,对输入 x 采用 Inplace 策略" + " :ref:`paddle.baddbmm_ ` ", "Inplace 版本的 baddbmm API,对输入 input 采用 Inplace 策略" " :ref:`paddle.bernoulli_ ` ", "Inplace 版本的 bernoulli API,对输入 x 采用 Inplace 策略" " :ref:`paddle.tanh_ ` ", "Inplace 版本的 tanh API,对输入 x 采用 Inplace 策略" " :ref:`paddle.erf_ ` ", "Inplace 版本的 erf API,对输入 x 采用 Inplace 策略"