From fefe8ccdfab349b2c510cad097b72b926dc1abdd Mon Sep 17 00:00:00 2001 From: liuhe Date: Wed, 31 Mar 2021 17:34:33 +0800 Subject: [PATCH] add raises and put a full stop of MatrixInverse --- mindspore/ops/operations/math_ops.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mindspore/ops/operations/math_ops.py b/mindspore/ops/operations/math_ops.py index cdfb08475fb..e3f93cb5ec3 100644 --- a/mindspore/ops/operations/math_ops.py +++ b/mindspore/ops/operations/math_ops.py @@ -4482,7 +4482,7 @@ class LinSpace(PrimitiveWithInfer): class MatrixInverse(PrimitiveWithInfer): """ 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: 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: 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: ``GPU``