modify format

This commit is contained in:
huodagu 2023-01-31 16:04:44 +08:00
parent 360add4014
commit 76f6d29115
4 changed files with 4 additions and 4 deletions

View File

@ -16,4 +16,4 @@ mindspore.ops.silu
其中,:math:`x_i` 是输入x的元素。 其中,:math:`x_i` 是输入x的元素。
更多详情请参考 `mindspore.nn.SiLU` 更多详情请参考 :class:`mindspore.nn.SiLU`

View File

@ -1856,7 +1856,7 @@ def slice(input_x, begin, size):
def concat(input_x, axis=0): def concat(input_x, axis=0):
"""Alias of :func:`mindspore.ops.cat()`""" """Alias for :func:`mindspore.ops.cat()`"""
return cat(input_x, axis) return cat(input_x, axis)

View File

@ -5045,7 +5045,7 @@ def addmv(x, mat, vec, beta=1, alpha=1):
>>> x = Tensor(np.array([2., 3.]).astype(np.float32)) >>> x = Tensor(np.array([2., 3.]).astype(np.float32))
>>> mat = Tensor(np.array([[2., 5., 3.], [4., 2., 2.]]).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)) >>> vec = Tensor(np.array([3., 2., 4.]).astype(np.float32))
>>> output = addmv(x, mat, vec) >>> output = ops.addmv(x, mat, vec)
>>> print(output) >>> print(output)
[30. 27.] [30. 27.]
""" """

View File

@ -2223,7 +2223,7 @@ def silu(x):
where :math:`x_i` is an element of the 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 return sigmoid_(x)*x