Skip to content

Commit d2aa7c3

Browse files
[Docathon][Fix Doc Format No.12-15] fix bucketize_cn, DataParallel_cn, gather_cn, increment_cn (#7532)
* 更新 bucketize_cn.rst 文档内容 * 更新 DataParallel_cn.rst 文档内容 * 更新 gather_cn.rst 文档内容 * 更新 increment_cn.rst 文档内容 * 更新 gather_cn.rst 文档内容 * 更新 gather_cn.rst 文档内容 * 更新 increment_cn.rst 文档内容 * 更新 increment_cn.rst 文档内容 * 对DataParallel_cn文件做了修改,删掉了句首句尾逗号前的多余空格 * 对gather_cn文件做了修改,删掉了句首句尾逗号前的多余空格 * 对increment_cn文件做了修改,删掉了句首句尾逗号前的多余空格 * fix: codestyle issues for PR
1 parent f8cd0a4 commit d2aa7c3

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

docs/api/paddle/DataParallel_cn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ DataParallel
1414

1515
1. 使用 ``paddle.distributed.spawn`` 方法启动,例如:
1616

17-
``python demo.py`` (spawn need to be called in ``__main__`` method)
17+
``python demo.py`` (spawn need to be called in ``__main__`` method)
1818

1919
2. 使用 ``paddle.distributed.launch`` 方法启动,例如:
2020

docs/api/paddle/bucketize_cn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ bucketize
1111
- **x** (Tensor) - 输入的 N 维 Tensor,支持的数据类型:int32、int64、float32、float64。
1212
- **sorted_sequence** (Tensor) - 输入的一维 Tensor,支持的数据类型:int32、int64、float32、float64。该 Tensor 的数值在其最后一个维度递增。
1313
- **out_int32** (bool,可选) - 输出的数据类型支持 int32、int64。默认值为 False,表示默认的输出数据类型为 int64。
14-
- **right** (bool,可选) - 根据给定 ``x`` 在 ``sorted_sequence`` 查找对应的上边界或下边界。如果 ``sorted_sequence``的值为 nan 或 inf,则返回最内层维度的大小。默认值为 False,表示在 ``sorted_sequence`` 的查找给定 ``x`` 的下边界。
14+
- **right** (bool,可选) - 根据给定 ``x`` 在 ``sorted_sequence`` 查找对应的上边界或下边界。如果 ``sorted_sequence`` 的值为 nan 或 inf,则返回最内层维度的大小。默认值为 False,表示在 ``sorted_sequence`` 的查找给定 ``x`` 的下边界。
1515
- **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。
1616

1717
返回

docs/api/paddle/gather_cn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ gather
4242
::::::::::::
4343
- **x** (Tensor) - 输入 Tensor,秩 ``rank >= 1``,支持的数据类型包括 int32、int64、float32、float64、complex64、complex128 和 uint8 (CPU)、float16(GPU) 。
4444
- **index** (Tensor) - 索引 Tensor,秩 ``rank = 0`` 或者 ``rank = 1``,数据类型为 int32 或 int64。
45-
- **axis** (Tensor) - 指定 index 获取输入的维度,``axis`` 的类型可以是 int 或者 Tensor,当 ``axis`` 为 Tensor 的时候其数据类型为 int32 或者 int64。默认值为 None,当``axis``为 None 的时候其值为 0。
45+
- **axis** (Tensor) - 指定 index 获取输入的维度,``axis`` 的类型可以是 int 或者 Tensor,当 ``axis`` 为 Tensor 的时候其数据类型为 int32 或者 int64。默认值为 None,当 ``axis`` 为 None 的时候其值为 0。
4646
- **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。
4747

4848
返回

docs/api/paddle/increment_cn.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ increment
88
99
1010
11-
在控制流程中用来让参数``x`` 的数值增加 ``value``
11+
在控制流程中用来让参数 ``x`` 的数值增加 ``value``。
1212

1313
参数
1414
:::::::::
@@ -20,7 +20,7 @@ increment
2020
返回
2121
:::::::::
2222

23-
Tensor,形状和数据类型同输入 ``x``
23+
Tensor,形状和数据类型同输入 ``x``。
2424

2525

2626
代码示例

0 commit comments

Comments
 (0)