From 74fbd09044994de5db27f18abd6164226aa13a46 Mon Sep 17 00:00:00 2001 From: chenjin060204 Date: Thu, 9 Oct 2025 16:50:22 +0800 Subject: [PATCH 01/12] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20bucketize=5Fcn.rst?= =?UTF-8?q?=20=E6=96=87=E6=A1=A3=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/paddle/bucketize_cn.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/paddle/bucketize_cn.rst b/docs/api/paddle/bucketize_cn.rst index bc5fdbb83b6..7dee36dd1c6 100644 --- a/docs/api/paddle/bucketize_cn.rst +++ b/docs/api/paddle/bucketize_cn.rst @@ -11,7 +11,7 @@ bucketize - **x** (Tensor) - 输入的 N 维 Tensor,支持的数据类型:int32、int64、float32、float64。 - **sorted_sequence** (Tensor) - 输入的一维 Tensor,支持的数据类型:int32、int64、float32、float64。该 Tensor 的数值在其最后一个维度递增。 - **out_int32** (bool,可选) - 输出的数据类型支持 int32、int64。默认值为 False,表示默认的输出数据类型为 int64。 - - **right** (bool,可选) - 根据给定 ``x`` 在 ``sorted_sequence`` 查找对应的上边界或下边界。如果 ``sorted_sequence``的值为 nan 或 inf,则返回最内层维度的大小。默认值为 False,表示在 ``sorted_sequence`` 的查找给定 ``x`` 的下边界。 + - **right** (bool,可选) - 根据给定 ``x`` 在 ``sorted_sequence`` 查找对应的上边界或下边界。如果 ``sorted_sequence`` 的值为 nan 或 inf,则返回最内层维度的大小。默认值为 False,表示在 ``sorted_sequence`` 的查找给定 ``x`` 的下边界。 - **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。 返回 From 5fc62961917a5c5353af3e00a73d41a73ee3d4ac Mon Sep 17 00:00:00 2001 From: chenjin060204 Date: Thu, 9 Oct 2025 18:14:06 +0800 Subject: [PATCH 02/12] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20DataParallel=5Fcn.rs?= =?UTF-8?q?t=20=E6=96=87=E6=A1=A3=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/paddle/DataParallel_cn.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/api/paddle/DataParallel_cn.rst b/docs/api/paddle/DataParallel_cn.rst index dea7f30d2c3..1fdedc69364 100644 --- a/docs/api/paddle/DataParallel_cn.rst +++ b/docs/api/paddle/DataParallel_cn.rst @@ -18,7 +18,7 @@ DataParallel 2. 使用 ``paddle.distributed.launch`` 方法启动,例如: -``python -m paddle.distributed.launch –selected_gpus=0,1 demo.py`` + ``python -m paddle.distributed.launch –selected_gpus=0,1 demo.py`` 其中 ``demo.py`` 脚本的代码可以是下面的示例代码。 @@ -33,7 +33,7 @@ DataParallel 返回 :::::::::::: -支持数据并行的 ``Layer``。 +支持数据并行的 ``Layer`` 。 代码示例 :::::::::::: @@ -64,7 +64,7 @@ state_dict(destination=None, include_sublayers=True) **参数** - - **destination** (dict,可选) - 如果提供 ``destination``,则所有参数和持久的 buffers 都将存放在 ``destination`` 中。默认值:None。 + - **destination** (dict,可选) - 如果提供 ``destination`` ,则所有参数和持久的 buffers 都将存放在 ``destination`` 中。默认值:None。 - **include_sublayers** (bool,可选) - 如果设置为 True,则包括子层的参数和 buffers。默认值:True。 **返回** From 38f1bbc990f4291ad58fd3249d4d8a6c36d4cf14 Mon Sep 17 00:00:00 2001 From: chenjin060204 Date: Thu, 9 Oct 2025 18:18:01 +0800 Subject: [PATCH 03/12] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20gather=5Fcn.rst=20?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/paddle/gather_cn.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/api/paddle/gather_cn.rst b/docs/api/paddle/gather_cn.rst index 8f32caf41d2..5431716ed64 100644 --- a/docs/api/paddle/gather_cn.rst +++ b/docs/api/paddle/gather_cn.rst @@ -41,8 +41,8 @@ gather 参数 :::::::::::: - **x** (Tensor) - 输入 Tensor,秩 ``rank >= 1``,支持的数据类型包括 int32、int64、float32、float64、complex64、complex128 和 uint8 (CPU)、float16(GPU) 。 - - **index** (Tensor) - 索引 Tensor,秩 ``rank = 0`` 或者 ``rank = 1``,数据类型为 int32 或 int64。 - - **axis** (Tensor) - 指定 index 获取输入的维度,``axis`` 的类型可以是 int 或者 Tensor,当 ``axis`` 为 Tensor 的时候其数据类型为 int32 或者 int64。默认值为 None,当``axis``为 None 的时候其值为 0。 + - **index** (Tensor) - 索引 Tensor,秩 ``rank = 0`` 或者 ``rank = 1`` ,数据类型为 int32 或 int64。 + - **axis** (Tensor) - 指定 index 获取输入的维度,``axis`` 的类型可以是 int 或者 Tensor,当 ``axis`` 为 Tensor 的时候其数据类型为 int32 或者 int64。默认值为 None,当 ``axis`` 为 None 的时候其值为 0。 - **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。 返回 @@ -69,12 +69,12 @@ PyTorch 兼容的 ``gather`` 操作:根据索引 index 获取输入 ``input`` :::::::::::: - **input** (Tensor) - 输入 Tensor,支持的数据类型包括 int32、int64、float32、float64、int16、uint8、float16(GPU)以及 bfloat16(GPU) 。 - **dim** (int) - 指定 index 获取输入的维度,``dim`` 的类型可以是 int 或者。 - - **index** (Tensor) - 索引 Tensor,``index`` 张量的各维度需要小于等于 ``input`` 张量的各维度(除 ``dim`` 维度外),且值需要在 ``input.shape[dim]`` 范围内。数据类型为 int32 或 int64。 + - **index** (Tensor) - 索引 Tensor, ``index`` 张量的各维度需要小于等于 ``input`` 张量的各维度(除 ``dim`` 维度外),且值需要在 ``input.shape[dim]`` 范围内。数据类型为 int32 或 int64。 - **out** (Tensor,可选) - 用于引用式传入输出值,注意:动态图下 out 可以是任意 Tensor,默认值为 None。 .. caution:: - 本接口没有实现 PyTorch 的 ``sparse_grad`` 参数!梯度默认是稠密的,等效于 ``sparse_grad=False``。 + 本接口没有实现 PyTorch 的 ``sparse_grad`` 参数!梯度默认是稠密的,等效于 ``sparse_grad=False`` 。 返回 From 9688a5b4ba063919c24a38c834d3205bed4f73ad Mon Sep 17 00:00:00 2001 From: chenjin060204 Date: Thu, 9 Oct 2025 18:22:47 +0800 Subject: [PATCH 04/12] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20increment=5Fcn.rst?= =?UTF-8?q?=20=E6=96=87=E6=A1=A3=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/paddle/increment_cn.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/paddle/increment_cn.rst b/docs/api/paddle/increment_cn.rst index c97722a0985..a27515b23a9 100644 --- a/docs/api/paddle/increment_cn.rst +++ b/docs/api/paddle/increment_cn.rst @@ -8,7 +8,7 @@ increment -在控制流程中用来让参数``x`` 的数值增加 ``value`` 。 +在控制流程中用来让参数 ``x`` 的数值增加 ``value`` 。 参数 ::::::::: From 69c6b21ddb810de9757c333acac91c6bf34351a7 Mon Sep 17 00:00:00 2001 From: chenjin060204 Date: Thu, 9 Oct 2025 18:31:37 +0800 Subject: [PATCH 05/12] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20gather=5Fcn.rst=20?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/paddle/gather_cn.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/paddle/gather_cn.rst b/docs/api/paddle/gather_cn.rst index 5431716ed64..301b6fc5525 100644 --- a/docs/api/paddle/gather_cn.rst +++ b/docs/api/paddle/gather_cn.rst @@ -40,7 +40,7 @@ gather 参数 :::::::::::: - - **x** (Tensor) - 输入 Tensor,秩 ``rank >= 1``,支持的数据类型包括 int32、int64、float32、float64、complex64、complex128 和 uint8 (CPU)、float16(GPU) 。 + - **x** (Tensor) - 输入 Tensor,秩 ``rank >= 1`` ,支持的数据类型包括 int32、int64、float32、float64、complex64、complex128 和 uint8 (CPU)、float16(GPU) 。 - **index** (Tensor) - 索引 Tensor,秩 ``rank = 0`` 或者 ``rank = 1`` ,数据类型为 int32 或 int64。 - **axis** (Tensor) - 指定 index 获取输入的维度,``axis`` 的类型可以是 int 或者 Tensor,当 ``axis`` 为 Tensor 的时候其数据类型为 int32 或者 int64。默认值为 None,当 ``axis`` 为 None 的时候其值为 0。 - **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。 @@ -68,7 +68,7 @@ PyTorch 兼容的 ``gather`` 操作:根据索引 index 获取输入 ``input`` 参数 :::::::::::: - **input** (Tensor) - 输入 Tensor,支持的数据类型包括 int32、int64、float32、float64、int16、uint8、float16(GPU)以及 bfloat16(GPU) 。 - - **dim** (int) - 指定 index 获取输入的维度,``dim`` 的类型可以是 int 或者。 + - **dim** (int) - 指定 index 获取输入的维度, ``dim`` 的类型可以是 int 或者。 - **index** (Tensor) - 索引 Tensor, ``index`` 张量的各维度需要小于等于 ``input`` 张量的各维度(除 ``dim`` 维度外),且值需要在 ``input.shape[dim]`` 范围内。数据类型为 int32 或 int64。 - **out** (Tensor,可选) - 用于引用式传入输出值,注意:动态图下 out 可以是任意 Tensor,默认值为 None。 From 72cee5b5db6a8f7f4f6c1bbd49f0658e782933ff Mon Sep 17 00:00:00 2001 From: chenjin060204 Date: Thu, 9 Oct 2025 18:33:32 +0800 Subject: [PATCH 06/12] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20gather=5Fcn.rst=20?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/paddle/gather_cn.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/paddle/gather_cn.rst b/docs/api/paddle/gather_cn.rst index 301b6fc5525..18255015265 100644 --- a/docs/api/paddle/gather_cn.rst +++ b/docs/api/paddle/gather_cn.rst @@ -42,7 +42,7 @@ gather :::::::::::: - **x** (Tensor) - 输入 Tensor,秩 ``rank >= 1`` ,支持的数据类型包括 int32、int64、float32、float64、complex64、complex128 和 uint8 (CPU)、float16(GPU) 。 - **index** (Tensor) - 索引 Tensor,秩 ``rank = 0`` 或者 ``rank = 1`` ,数据类型为 int32 或 int64。 - - **axis** (Tensor) - 指定 index 获取输入的维度,``axis`` 的类型可以是 int 或者 Tensor,当 ``axis`` 为 Tensor 的时候其数据类型为 int32 或者 int64。默认值为 None,当 ``axis`` 为 None 的时候其值为 0。 + - **axis** (Tensor) - 指定 index 获取输入的维度, ``axis`` 的类型可以是 int 或者 Tensor,当 ``axis`` 为 Tensor 的时候其数据类型为 int32 或者 int64。默认值为 None,当 ``axis`` 为 None 的时候其值为 0。 - **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。 返回 From 1a7fd7dc4d317a193e99a88b551b4d6faae04c7f Mon Sep 17 00:00:00 2001 From: chenjin060204 Date: Thu, 9 Oct 2025 18:35:46 +0800 Subject: [PATCH 07/12] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20increment=5Fcn.rst?= =?UTF-8?q?=20=E6=96=87=E6=A1=A3=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/paddle/increment_cn.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/api/paddle/increment_cn.rst b/docs/api/paddle/increment_cn.rst index a27515b23a9..6ac7f505a1a 100644 --- a/docs/api/paddle/increment_cn.rst +++ b/docs/api/paddle/increment_cn.rst @@ -27,3 +27,4 @@ Tensor,形状和数据类型同输入 ``x`` 。 :::::::::::: COPY-FROM: paddle.increment + From 848c13efe6c50918bc8e1141ad1307d89fef23d3 Mon Sep 17 00:00:00 2001 From: chenjin060204 Date: Thu, 9 Oct 2025 18:37:02 +0800 Subject: [PATCH 08/12] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20increment=5Fcn.rst?= =?UTF-8?q?=20=E6=96=87=E6=A1=A3=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/paddle/increment_cn.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/api/paddle/increment_cn.rst b/docs/api/paddle/increment_cn.rst index 6ac7f505a1a..c3e44c656fe 100644 --- a/docs/api/paddle/increment_cn.rst +++ b/docs/api/paddle/increment_cn.rst @@ -26,5 +26,4 @@ Tensor,形状和数据类型同输入 ``x`` 。 代码示例 :::::::::::: -COPY-FROM: paddle.increment - +COPY-FROM: paddle.increment \ No newline at end of file From bd80a4a3b0aaebd9fcfe733ef21bf207eff5b00f Mon Sep 17 00:00:00 2001 From: chenjin060204 Date: Fri, 10 Oct 2025 09:38:34 +0800 Subject: [PATCH 09/12] =?UTF-8?q?=E5=AF=B9DataParallel=5Fcn=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=81=9A=E4=BA=86=E4=BF=AE=E6=94=B9=EF=BC=8C=E5=88=A0?= =?UTF-8?q?=E6=8E=89=E4=BA=86=E5=8F=A5=E9=A6=96=E5=8F=A5=E5=B0=BE=E9=80=97?= =?UTF-8?q?=E5=8F=B7=E5=89=8D=E7=9A=84=E5=A4=9A=E4=BD=99=E7=A9=BA=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/paddle/DataParallel_cn.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/api/paddle/DataParallel_cn.rst b/docs/api/paddle/DataParallel_cn.rst index 1fdedc69364..8b19db90777 100644 --- a/docs/api/paddle/DataParallel_cn.rst +++ b/docs/api/paddle/DataParallel_cn.rst @@ -14,11 +14,11 @@ DataParallel 1. 使用 ``paddle.distributed.spawn`` 方法启动,例如: - ``python demo.py`` (spawn need to be called in ``__main__`` method) +``python demo.py`` (spawn need to be called in ``__main__`` method) 2. 使用 ``paddle.distributed.launch`` 方法启动,例如: - ``python -m paddle.distributed.launch –selected_gpus=0,1 demo.py`` +``python -m paddle.distributed.launch –selected_gpus=0,1 demo.py`` 其中 ``demo.py`` 脚本的代码可以是下面的示例代码。 @@ -33,7 +33,7 @@ DataParallel 返回 :::::::::::: -支持数据并行的 ``Layer`` 。 +支持数据并行的 ``Layer``。 代码示例 :::::::::::: @@ -64,7 +64,7 @@ state_dict(destination=None, include_sublayers=True) **参数** - - **destination** (dict,可选) - 如果提供 ``destination`` ,则所有参数和持久的 buffers 都将存放在 ``destination`` 中。默认值:None。 + - **destination** (dict,可选) - 如果提供 ``destination``,则所有参数和持久的 buffers 都将存放在 ``destination`` 中。默认值:None。 - **include_sublayers** (bool,可选) - 如果设置为 True,则包括子层的参数和 buffers。默认值:True。 **返回** From b93caa7ed5bf9bdc3f30abbadc139e42fc23ae58 Mon Sep 17 00:00:00 2001 From: chenjin060204 Date: Fri, 10 Oct 2025 09:44:34 +0800 Subject: [PATCH 10/12] =?UTF-8?q?=E5=AF=B9gather=5Fcn=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=81=9A=E4=BA=86=E4=BF=AE=E6=94=B9=EF=BC=8C=E5=88=A0=E6=8E=89?= =?UTF-8?q?=E4=BA=86=E5=8F=A5=E9=A6=96=E5=8F=A5=E5=B0=BE=E9=80=97=E5=8F=B7?= =?UTF-8?q?=E5=89=8D=E7=9A=84=E5=A4=9A=E4=BD=99=E7=A9=BA=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/paddle/gather_cn.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/api/paddle/gather_cn.rst b/docs/api/paddle/gather_cn.rst index 18255015265..39243f7974c 100644 --- a/docs/api/paddle/gather_cn.rst +++ b/docs/api/paddle/gather_cn.rst @@ -40,9 +40,9 @@ gather 参数 :::::::::::: - - **x** (Tensor) - 输入 Tensor,秩 ``rank >= 1`` ,支持的数据类型包括 int32、int64、float32、float64、complex64、complex128 和 uint8 (CPU)、float16(GPU) 。 - - **index** (Tensor) - 索引 Tensor,秩 ``rank = 0`` 或者 ``rank = 1`` ,数据类型为 int32 或 int64。 - - **axis** (Tensor) - 指定 index 获取输入的维度, ``axis`` 的类型可以是 int 或者 Tensor,当 ``axis`` 为 Tensor 的时候其数据类型为 int32 或者 int64。默认值为 None,当 ``axis`` 为 None 的时候其值为 0。 + - **x** (Tensor) - 输入 Tensor,秩 ``rank >= 1``,支持的数据类型包括 int32、int64、float32、float64、complex64、complex128 和 uint8 (CPU)、float16(GPU) 。 + - **index** (Tensor) - 索引 Tensor,秩 ``rank = 0`` 或者 ``rank = 1``,数据类型为 int32 或 int64。 + - **axis** (Tensor) - 指定 index 获取输入的维度,``axis`` 的类型可以是 int 或者 Tensor,当 ``axis`` 为 Tensor 的时候其数据类型为 int32 或者 int64。默认值为 None,当 ``axis`` 为 None 的时候其值为 0。 - **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。 返回 @@ -68,13 +68,13 @@ PyTorch 兼容的 ``gather`` 操作:根据索引 index 获取输入 ``input`` 参数 :::::::::::: - **input** (Tensor) - 输入 Tensor,支持的数据类型包括 int32、int64、float32、float64、int16、uint8、float16(GPU)以及 bfloat16(GPU) 。 - - **dim** (int) - 指定 index 获取输入的维度, ``dim`` 的类型可以是 int 或者。 - - **index** (Tensor) - 索引 Tensor, ``index`` 张量的各维度需要小于等于 ``input`` 张量的各维度(除 ``dim`` 维度外),且值需要在 ``input.shape[dim]`` 范围内。数据类型为 int32 或 int64。 + - **dim** (int) - 指定 index 获取输入的维度,``dim`` 的类型可以是 int 或者。 + - **index** (Tensor) - 索引 Tensor,``index`` 张量的各维度需要小于等于 ``input`` 张量的各维度(除 ``dim`` 维度外),且值需要在 ``input.shape[dim]`` 范围内。数据类型为 int32 或 int64。 - **out** (Tensor,可选) - 用于引用式传入输出值,注意:动态图下 out 可以是任意 Tensor,默认值为 None。 .. caution:: - 本接口没有实现 PyTorch 的 ``sparse_grad`` 参数!梯度默认是稠密的,等效于 ``sparse_grad=False`` 。 + 本接口没有实现 PyTorch 的 ``sparse_grad`` 参数!梯度默认是稠密的,等效于 ``sparse_grad=False``。 返回 From bb82827c14a61579712f54756ea1773279e21d29 Mon Sep 17 00:00:00 2001 From: chenjin060204 Date: Fri, 10 Oct 2025 09:45:50 +0800 Subject: [PATCH 11/12] =?UTF-8?q?=E5=AF=B9increment=5Fcn=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=81=9A=E4=BA=86=E4=BF=AE=E6=94=B9=EF=BC=8C=E5=88=A0=E6=8E=89?= =?UTF-8?q?=E4=BA=86=E5=8F=A5=E9=A6=96=E5=8F=A5=E5=B0=BE=E9=80=97=E5=8F=B7?= =?UTF-8?q?=E5=89=8D=E7=9A=84=E5=A4=9A=E4=BD=99=E7=A9=BA=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/paddle/increment_cn.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/paddle/increment_cn.rst b/docs/api/paddle/increment_cn.rst index c3e44c656fe..e32caa921f4 100644 --- a/docs/api/paddle/increment_cn.rst +++ b/docs/api/paddle/increment_cn.rst @@ -8,7 +8,7 @@ increment -在控制流程中用来让参数 ``x`` 的数值增加 ``value`` 。 +在控制流程中用来让参数 ``x`` 的数值增加 ``value``。 参数 ::::::::: @@ -20,7 +20,7 @@ increment 返回 ::::::::: -Tensor,形状和数据类型同输入 ``x`` 。 +Tensor,形状和数据类型同输入 ``x``。 代码示例 From 57e0b9642143d2982c594fb2d1c96f76b107e123 Mon Sep 17 00:00:00 2001 From: chenjin060204 Date: Fri, 10 Oct 2025 18:57:23 +0800 Subject: [PATCH 12/12] fix: codestyle issues for PR --- docs/api/paddle/DataParallel_cn.rst | 2 +- docs/api/paddle/increment_cn.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/paddle/DataParallel_cn.rst b/docs/api/paddle/DataParallel_cn.rst index 8b19db90777..89ec76e7f37 100644 --- a/docs/api/paddle/DataParallel_cn.rst +++ b/docs/api/paddle/DataParallel_cn.rst @@ -18,7 +18,7 @@ DataParallel 2. 使用 ``paddle.distributed.launch`` 方法启动,例如: -``python -m paddle.distributed.launch –selected_gpus=0,1 demo.py`` +``python -m paddle.distributed.launch –selected_gpus=0,1 demo.py`` 其中 ``demo.py`` 脚本的代码可以是下面的示例代码。 diff --git a/docs/api/paddle/increment_cn.rst b/docs/api/paddle/increment_cn.rst index e32caa921f4..f03ba6298d4 100644 --- a/docs/api/paddle/increment_cn.rst +++ b/docs/api/paddle/increment_cn.rst @@ -26,4 +26,4 @@ Tensor,形状和数据类型同输入 ``x``。 代码示例 :::::::::::: -COPY-FROM: paddle.increment \ No newline at end of file +COPY-FROM: paddle.increment