From 8500ec2161e95ff9a9ac11074d8e760a50d998fa Mon Sep 17 00:00:00 2001 From: wangrao124 Date: Mon, 1 Nov 2021 12:28:10 +0800 Subject: [PATCH] fix rollaxis docs --- mindspore/numpy/array_ops.py | 3 +-- mindspore/numpy/math_ops.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/mindspore/numpy/array_ops.py b/mindspore/numpy/array_ops.py index 7ce2879d76d..3d9485a8252 100644 --- a/mindspore/numpy/array_ops.py +++ b/mindspore/numpy/array_ops.py @@ -148,9 +148,8 @@ def rollaxis(x, axis, start=0): start (int): Default: 0. If :math:`start <= axis`, the axis is rolled back until it lies in this position (`start`). If :math:`start > axis`: the axis is rolled until it lies before this position (`start`). - If :math:`start < 0`, the start will be normalized as a non-negative number (more details - can be seen in the source code.) + can be seen in the source code.) .. table +===========+=================+ diff --git a/mindspore/numpy/math_ops.py b/mindspore/numpy/math_ops.py index 18bd7ef6cb4..5ac648ff73f 100644 --- a/mindspore/numpy/math_ops.py +++ b/mindspore/numpy/math_ops.py @@ -3484,7 +3484,7 @@ def tan(x, dtype=None): Tensor or scalar. This is a scalar if `x` is a scalar. Raises: - TypeError: If the input is not a tensor or is :class:`tensor.dtype` is :class:`mindsproe.float64`. + TypeError: If the input is not a tensor or is :class:`tensor.dtype` is :class:`mindspore.float64`. Supported Platforms: ``Ascend`` ``CPU``