Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/api/paddle/cummax_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ cummax
返回
::::::::::
- ``out`` (Tensor):返回累积最大值操作的结果,累积最大值结果类型和输入 x 相同。
- ``indices`` (Tensor):返回对应累积最大值操作的的索引结果
- ``indices`` (Tensor):返回对应累积最大值操作的索引结果

代码示例
::::::::::
Expand Down
3 changes: 2 additions & 1 deletion docs/api/paddle/cummin_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ cummin
- **axis** (int,可选) - 指明需要累积最小值的维度。-1 代表最后一维。默认:None,将输入展开为一维变量再进行累积最小值计算。
- **dtype** (str|paddle.dtype|np.dtype,可选) - 输出 Indices 的数据类型,可以是 int32、int64,默认值为 int64。
- **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name` ,一般无需设置,默认值为 None。

返回
::::::::::
- ``out`` (Tensor):返回累积最小值操作的结果,累积最小值结果类型和输入 x 相同。
- ``indices`` (Tensor):返回对应累积最小值操作的的索引结果
- ``indices`` (Tensor):返回对应累积最小值操作的索引结果

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

关键字参数
Expand Down