!45389 fix glu example

Merge pull request !45389 from lianliguang/code_docs_ms
This commit is contained in:
i-robot 2022-11-10 06:19:57 +00:00 committed by Gitee
commit 32f66f2402
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 2 additions and 2 deletions

View File

@ -1508,7 +1508,7 @@ class GLU(Cell):
>>> m = nn.GLU()
>>> input = Tensor([[0.1,0.2,0.3,0.4],[0.5,0.6,0.7,0.8]])
>>> output = m(input)
>>> print(out)
>>> print(output)
[[0.05744425 0.11973753
[0.33409387 0.41398472]]
"""

View File

@ -4267,7 +4267,7 @@ def glu(x, axis=-1):
Examples:
>>> input = Tensor([[0.1,0.2,0.3,0.4],[0.5,0.6,0.7,0.8]])
>>> output = ops.glu(input)
>>> print(out)
>>> print(output)
[[0.05744425 0.11973753
[0.33409387 0.41398472]]
"""