Skip to content

Add Complex Types to APIs #7265

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 23, 2025
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/isfinite_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ isfinite

参数
:::::::::
- **x** (Tensor):输入的 `Tensor`,数据类型为:float16、float32、float64、int32、int64。
- **x** (Tensor):输入的 `Tensor`,数据类型为:float16、float32、float64、int32、int64、complex64、complex128
- **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。

返回
Expand Down
2 changes: 1 addition & 1 deletion docs/api/paddle/isinf_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ isinf

参数
:::::::::
- **x** (Tensor):输入的 `Tensor`,数据类型为:float16、float32、float64、int8、int16、int32、int64、uint8
- **x** (Tensor):输入的 `Tensor`,数据类型为:float16、float32、float64、uint8、int8、int16、int32、int64、complex64、complex128
- **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。

返回
Expand Down
2 changes: 1 addition & 1 deletion docs/api/paddle/isnan_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ isnan

参数
:::::::::
- **x** (Tensor) - 输入的 `Tensor`,数据类型为:float16、float32、float64、int32、int64。
- **x** (Tensor) - 输入的 `Tensor`,数据类型为:float16、float32、float64、int32、int64、complex64、complex128
- **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。

返回
Expand Down
2 changes: 1 addition & 1 deletion docs/api/paddle/prod_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ prod
参数
::::::::::::

- **x** (Tensor) - 输入的 Tensor,数据类型为:bfloat16、float16、float32、float64、int32、int64。
- **x** (Tensor) - 输入的 Tensor,数据类型为:bfloat16、float16、float32、float64、int32、int64、complex64、complex128
- **axis** (int|list|tuple,可选) - 求乘积运算的维度。如果是 None,则计算所有元素的乘积并返回包含单个元素的 Tensor,否则该参数必须在 :math:`[-x.ndim, x.ndim)` 范围内。如果 :math:`axis[i] < 0`,则维度将变为 :math:`x.ndim + axis[i]`,默认为 None。
- **keepdim** (bool,可选) - 是否在输出 Tensor 中保留输入的维度。除非 keepdim 为 True,否则输出 Tensor 的维度将比输入 Tensor 小一维,默认值为 False。
- **dtype** (str,可选) - 输出 Tensor 的数据类型,支持 int32、int64、float32、float64。如果指定了该参数,那么在执行操作之前,输入 Tensor 将被转换为 dtype 类型。这对于防止数据类型溢出非常有用。若参数为空,则输出变量的数据类型和输入变量相同,默认为:None。
Expand Down
2 changes: 1 addition & 1 deletion docs/api/paddle/sqrt_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ sqrt
::::::::::::


- **x** (Tensor) - 支持任意维度的 Tensor。数据类型为 float32,float64 或 float16
- **x** (Tensor) - 支持任意维度的 Tensor。数据类型为 float16,float32,float64,complex64complex128
- **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。

返回
Expand Down