update document of MatrixInverse

From: @mind-lh
Reviewed-by: @liangchenghui,@wuxuejian
Signed-off-by: @liangchenghui
This commit is contained in:
mindspore-ci-bot 2021-04-01 10:08:08 +08:00 committed by Gitee
commit e55f3971b3
1 changed files with 5 additions and 1 deletions
mindspore/ops/operations

View File

@ -4482,7 +4482,7 @@ class LinSpace(PrimitiveWithInfer):
class MatrixInverse(PrimitiveWithInfer): class MatrixInverse(PrimitiveWithInfer):
""" """
Returns the inverse of the input matrix. If the matrix is irreversible, an error may be reported or an unknown Returns the inverse of the input matrix. If the matrix is irreversible, an error may be reported or an unknown
result may be returned result may be returned.
Note: Note:
The parameter 'adjoint' is only supporting False right now. Because complex number is not supported at present. The parameter 'adjoint' is only supporting False right now. Because complex number is not supported at present.
@ -4497,6 +4497,10 @@ class MatrixInverse(PrimitiveWithInfer):
Outputs: Outputs:
Tensor, has the same type and shape as input `x`. Tensor, has the same type and shape as input `x`.
Raises:
TypeError: If `adjoint` is not a bool.
TypeError: If dtype of `x` is neither float32 nor double.
Supported Platforms: Supported Platforms:
``GPU`` ``GPU``