diff --git a/docs/api/api_python/ops/mindspore.ops.func_diagflat.rst b/docs/api/api_python/ops/mindspore.ops.func_diagflat.rst index f53936be57f..6c1fb31141e 100644 --- a/docs/api/api_python/ops/mindspore.ops.func_diagflat.rst +++ b/docs/api/api_python/ops/mindspore.ops.func_diagflat.rst @@ -18,3 +18,4 @@ mindspore.ops.diagflat 异常: - **TypeError** - `x` 不是Tensor。 + - **TypeError** - `offset` 不是整数。 diff --git a/mindspore/python/mindspore/ops/function/math_func.py b/mindspore/python/mindspore/ops/function/math_func.py index 15dd6f683cc..9ec38389c92 100644 --- a/mindspore/python/mindspore/ops/function/math_func.py +++ b/mindspore/python/mindspore/ops/function/math_func.py @@ -4292,7 +4292,7 @@ def orgqr(x, tau): Examples: >>> x = Tensor(np.array([[-114.6, 10.9, 1.1], [-0.304, 38.07, 69.38], [-0.45, -0.17, 62.]]), mindspore.float32) >>> tau = Tensor(np.array([1.55, 1.94, 0.0]), mindspore.float32) - >>> net = ops.Orgqr() + >>> net = ops.orgqr() >>> y = net(x, tau) >>> print(y) [[-0.54999995 -0.2128925 0.8137956 ]