!45389 fix glu example
Merge pull request !45389 from lianliguang/code_docs_ms
This commit is contained in:
commit
32f66f2402
|
@ -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]]
|
||||
"""
|
||||
|
|
|
@ -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]]
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue