Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
6323fc2c
Commit
6323fc2c
authored
Nov 05, 2021
by
Shucai Xiao
Browse files
refine output log info
parent
c4d1c4f3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
tools/test_runner.py
tools/test_runner.py
+3
-2
No files found.
tools/test_runner.py
View file @
6323fc2c
...
@@ -184,9 +184,10 @@ def check_correctness(gold_outputs, outputs, rtol=1e-3, atol=1e-3):
...
@@ -184,9 +184,10 @@ def check_correctness(gold_outputs, outputs, rtol=1e-3, atol=1e-3):
ret
=
True
ret
=
True
for
i
in
range
(
out_num
):
for
i
in
range
(
out_num
):
if
not
np
.
allclose
(
gold_outputs
[
i
],
outputs
[
i
],
rtol
,
atol
):
if
not
np
.
allclose
(
gold_outputs
[
i
],
outputs
[
i
],
rtol
,
atol
):
print
(
"Output {} is incorrect ..."
.
format
(
i
))
print
(
"
\n
Output {} is incorrect ..."
.
format
(
i
))
print
(
"Expected value:
\n
{}"
.
format
(
gold_outputs
[
i
]))
print
(
"Expected value:
\n
{}"
.
format
(
gold_outputs
[
i
]))
print
(
"Actual value:
\n
{}"
.
format
(
outputs
[
i
]))
print
(
"......"
)
print
(
"Actual value:
\n
{}
\n
"
.
format
(
outputs
[
i
]))
ret
=
False
ret
=
False
return
ret
return
ret
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment