fix trailing space in the example

This commit is contained in:
dinglinhe 2021-06-09 16:32:29 +08:00
parent f41ca66643
commit 147df57261
2 changed files with 2 additions and 9 deletions

View File

@ -451,8 +451,8 @@ class FastGelu(Cell):
>>> fast_gelu = nn.FastGelu()
>>> output = fast_gelu(input_x)
>>> print(output)
[[-1.5420423e-01 3.9955850e+00 -9.7664279e-06]
[ 1.9356586e+00 -1.0070159e-03 8.9999981e+00]]
[[-1.5418735e-01 3.9921875e+00 -9.7473649e-06]
[ 1.9375000e+00 -1.0052517e-03 8.9824219e+00]]
"""
def __init__(self):

View File

@ -1973,7 +1973,6 @@ class Tile(PrimitiveWithInfer):
[3. 4. 3. 4.]
[1. 2. 1. 2.]
[3. 4. 3. 4.]]
[[1. 2. 1. 2.]
[3. 4. 3. 4.]
[1. 2. 1. 2.]
@ -4520,17 +4519,14 @@ class ScatterNdAdd(_ScatterNdOp):
[2 2 2 2]
[3 3 3 3]
[4 4 4 4]]
[[0 0 0 0]
[0 0 0 0]
[0 0 0 0]
[0 0 0 0]]
[[5 5 5 5]
[6 6 6 6]
[7 7 7 7]
[8 8 8 8]]
[[0 0 0 0]
[0 0 0 0]
[0 0 0 0]
@ -4600,17 +4596,14 @@ class ScatterNdSub(_ScatterNdOp):
[-2 -2 -2 -2]
[-3 -3 -3 -3]
[-4 -4 -4 -4]]
[[ 0 0 0 0]
[ 0 0 0 0]
[ 0 0 0 0]
[ 0 0 0 0]]
[[-5 -5 -5 -5]
[-6 -6 -6 -6]
[-7 -7 -7 -7]
[-8 -8 -8 -8]]
[[ 0 0 0 0]
[ 0 0 0 0]
[ 0 0 0 0]