Skip to content

Commit 7dbe914

Browse files
ooooo-createNoai-ossCopilot
authored
[Docs] Fix typos and formatting issues in cummax, cummin, and diag API docs (#7786)
Co-authored-by: cutetocute <jiuwoxiao@outlook.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent cbadd35 commit 7dbe914

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

docs/api/paddle/cummax_cn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ cummax
2020
返回
2121
::::::::::
2222
- ``out`` (Tensor):返回累积最大值操作的结果,累积最大值结果类型和输入 x 相同。
23-
- ``indices`` (Tensor):返回对应累积最大值操作的的索引结果
23+
- ``indices`` (Tensor):返回对应累积最大值操作的索引结果
2424

2525
代码示例
2626
::::::::::

docs/api/paddle/cummin_cn.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ cummin
1616
- **axis** (int,可选) - 指明需要累积最小值的维度。-1 代表最后一维。默认:None,将输入展开为一维变量再进行累积最小值计算。
1717
- **dtype** (str|paddle.dtype|np.dtype,可选) - 输出 Indices 的数据类型,可以是 int32、int64,默认值为 int64。
1818
- **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name` ,一般无需设置,默认值为 None。
19+
1920
返回
2021
::::::::::
2122
- ``out`` (Tensor):返回累积最小值操作的结果,累积最小值结果类型和输入 x 相同。
22-
- ``indices`` (Tensor):返回对应累积最小值操作的的索引结果
23+
- ``indices`` (Tensor):返回对应累积最小值操作的索引结果
2324

2425
代码示例
2526
::::::::::

docs/api/paddle/diag_cn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ diag
2020
:::::::::
2121
- **x** (Tensor) - 输入的 `Tensor`。它的形状可以是一维或二维。其数据类型应为 float16、float32、float64、int32、int64、complex64、complex128。别名 ``input`` 。
2222
- **offset** (int,可选) - 对角线偏移量。正值表示上对角线,0 表示主对角线,负值表示下对角线。默认值为 0。别名 ``diagonal`` 。
23-
- **padding_value** (int|float,可选) -使用此值来填充指定对角线以外的区域。仅在输入为一维 Tensor 时生效。默认值为 0。
23+
- **padding_value** (int|float,可选) - 使用此值来填充指定对角线以外的区域。仅在输入为一维 Tensor 时生效。默认值为 0。
2424
- **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。
2525

2626
关键字参数

0 commit comments

Comments
 (0)