add pinv to api list
This commit is contained in:
parent
a4545bdce6
commit
a5841b9e09
|
@ -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
|
||||
|
|
|
@ -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。
|
||||
|
||||
输出:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue