From 76f6d291153e6b842d84c52a4af54b11d825584a Mon Sep 17 00:00:00 2001 From: huodagu Date: Tue, 31 Jan 2023 16:04:44 +0800 Subject: [PATCH] modify format --- docs/api/api_python/ops/mindspore.ops.func_silu.rst | 2 +- mindspore/python/mindspore/ops/function/array_func.py | 2 +- mindspore/python/mindspore/ops/function/math_func.py | 2 +- mindspore/python/mindspore/ops/function/nn_func.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/api/api_python/ops/mindspore.ops.func_silu.rst b/docs/api/api_python/ops/mindspore.ops.func_silu.rst index bf4ce34f46f..8f400ca7f7c 100644 --- a/docs/api/api_python/ops/mindspore.ops.func_silu.rst +++ b/docs/api/api_python/ops/mindspore.ops.func_silu.rst @@ -16,4 +16,4 @@ mindspore.ops.silu 其中,:math:`x_i` 是输入x的元素。 - 更多详情请参考 `mindspore.nn.SiLU`。 + 更多详情请参考 :class:`mindspore.nn.SiLU`。 diff --git a/mindspore/python/mindspore/ops/function/array_func.py b/mindspore/python/mindspore/ops/function/array_func.py index bf679d96de7..1c46f23dc32 100644 --- a/mindspore/python/mindspore/ops/function/array_func.py +++ b/mindspore/python/mindspore/ops/function/array_func.py @@ -1856,7 +1856,7 @@ def slice(input_x, begin, size): def concat(input_x, axis=0): - """Alias of :func:`mindspore.ops.cat()`""" + """Alias for :func:`mindspore.ops.cat()`""" return cat(input_x, axis) diff --git a/mindspore/python/mindspore/ops/function/math_func.py b/mindspore/python/mindspore/ops/function/math_func.py index ffa950332a4..9a35400c66d 100644 --- a/mindspore/python/mindspore/ops/function/math_func.py +++ b/mindspore/python/mindspore/ops/function/math_func.py @@ -5045,7 +5045,7 @@ def addmv(x, mat, vec, beta=1, alpha=1): >>> x = Tensor(np.array([2., 3.]).astype(np.float32)) >>> mat = Tensor(np.array([[2., 5., 3.], [4., 2., 2.]]).astype(np.float32)) >>> vec = Tensor(np.array([3., 2., 4.]).astype(np.float32)) - >>> output = addmv(x, mat, vec) + >>> output = ops.addmv(x, mat, vec) >>> print(output) [30. 27.] """ diff --git a/mindspore/python/mindspore/ops/function/nn_func.py b/mindspore/python/mindspore/ops/function/nn_func.py index 85ef288b0ab..95b7f67d368 100644 --- a/mindspore/python/mindspore/ops/function/nn_func.py +++ b/mindspore/python/mindspore/ops/function/nn_func.py @@ -2223,7 +2223,7 @@ def silu(x): where :math:`x_i` is an element of the x. - For more details, please refer to mindspore.nn.SiLU. + For more details, please refer to :class:`mindspore.nn.SiLU`. """ return sigmoid_(x)*x