forked from mindspore-Ecosystem/mindspore
modify format
This commit is contained in:
parent
360add4014
commit
76f6d29115
|
@ -16,4 +16,4 @@ mindspore.ops.silu
|
|||
|
||||
其中,:math:`x_i` 是输入x的元素。
|
||||
|
||||
更多详情请参考 `mindspore.nn.SiLU`。
|
||||
更多详情请参考 :class:`mindspore.nn.SiLU`。
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
@ -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.]
|
||||
"""
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue