!20329 Fix the format problem of the sample output of Tril operator

Merge pull request !20329 from dinglinhe/code_docs_dlh_ms_I408LD_1
This commit is contained in:
i-robot 2021-07-15 07:04:27 +00:00 committed by Gitee
commit 75e49e17c7
1 changed files with 4 additions and 4 deletions

View File

@ -1103,7 +1103,7 @@ class Triu(Cell):
[[ 1, 2, 3, 4],
[ 0, 6, 7, 8],
[ 0, 0, 12, 13],
[ 0, 0, 0, 17]]))
[ 0, 0, 0, 17]]
>>> x = Tensor(np.array([[ 1, 2, 3, 4],
... [ 5, 6, 7, 8],
... [10, 11, 12, 13],
@ -1114,7 +1114,7 @@ class Triu(Cell):
[[ 0, 2, 3, 4],
[ 0, 0, 7, 8],
[ 0, 0, 0, 13],
[ 0, 0, 0, 0]]))
[ 0, 0, 0, 0]]
>>> x = Tensor(np.array([[ 1, 2, 3, 4],
... [ 5, 6, 7, 8],
... [10, 11, 12, 13],
@ -1125,7 +1125,7 @@ class Triu(Cell):
[[ 0, 0, 3, 4],
[ 0, 0, 0, 8],
[ 0, 0, 0, 0],
[ 0, 0, 0, 0]]))
[ 0, 0, 0, 0]]
>>> x = Tensor(np.array([[ 1, 2, 3, 4],
... [ 5, 6, 7, 8],
... [10, 11, 12, 13],
@ -1136,7 +1136,7 @@ class Triu(Cell):
[[ 1, 2, 3, 4],
[ 5, 6, 7, 8],
[ 0, 11, 12, 13],
[ 0, 0, 16, 17]]))
[ 0, 0, 16, 17]]
"""
def __init__(self):