Merge pull request !38823 from Henry Shi/ops_bugfix_silu_sofmin
This commit is contained in:
i-robot 2022-07-26 09:47:06 +00:00 committed by Gitee
commit 6618a4bfcd
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 2 additions and 0 deletions

View File

@ -592,6 +592,8 @@ class SiLU(Cell):
>>> x = Tensor(np.array([-1, 2, -3, 2, -1]), mindspore.float16)
>>> silu = nn.SiLU()
>>> output = silu(x)
>>> print(output)
[-0.269 1.762 -0.1423 1.762 -0.269]
"""
def __init__(self):