!45405 pinv api增加至接口列表

Merge pull request !45405 from wujueying/master
This commit is contained in:
i-robot 2022-11-11 02:11:17 +00:00 committed by Gitee
commit 3656c62627
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 7 additions and 7 deletions

View File

@ -206,6 +206,7 @@ mindspore.ops.function
mindspore.ops.mul
mindspore.ops.neg
mindspore.ops.negative
mindspore.ops.pinv
mindspore.ops.positive
mindspore.ops.pow
mindspore.ops.roll

View File

@ -9,8 +9,8 @@ mindspore.ops.pinv
- **x** (Tensor) - 要计算的矩阵。矩阵必须至少有两个维度。支持数据类型为float32或float64。
关键字参数:
- **atol** (float, tensor) - 绝对公差值。默认值None。
- **rtol** (float, tensor) - 相对公差值。默认值None。
- **atol** (float, Tensor) - 绝对公差值。默认值None。
- **rtol** (float, Tensor) - 相对公差值。默认值None。
- **hermitian** (bool) - 为True时假设x为实对称矩阵。默认值False。
输出:

View File

@ -207,6 +207,7 @@ Element-by-Element Operations
mindspore.ops.mul
mindspore.ops.neg
mindspore.ops.negative
mindspore.ops.pinv
mindspore.ops.positive
mindspore.ops.pow
mindspore.ops.roll

View File

@ -95,15 +95,13 @@ def pinv(x, *, atol=None, rtol=None, hermitian=False):
"""
Computes the (Moore-Penrose) pseudo-inverse of a matrix.
Note:
Only `float32`, `float64` are supported Tensor dtypes.
Args:
x (Tensor): A matrix to be calculated. The matrix must be at least two dimensions.
Only `float32`, `float64` are supported Tensor dtypes.
Keyword args:
atol (float, tensor) : absolute tolerance value. Default: None.
rtol (float, tensor) : relative tolerance value. Default: None.
atol (float, Tensor) : absolute tolerance value. Default: None.
rtol (float, Tensor) : relative tolerance value. Default: None.
hermitian (bool) : An optional bool. x is assumed to be symmetric if real. Default: False.
Outputs: