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
e7f7a7e2
"include/vscode:/vscode.git/clone" did not exist on "6eb55499234aafec721d71401171c144261a9893"
Commit
e7f7a7e2
authored
Nov 30, 2023
by
charlie
Browse files
Have the accuracy checker print the whole final buffer
parent
44463b94
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
tools/accuracy/accuracy_checker.py
tools/accuracy/accuracy_checker.py
+5
-4
No files found.
tools/accuracy/accuracy_checker.py
View file @
e7f7a7e2
...
@@ -134,10 +134,11 @@ def check_correctness(gold_outputs,
...
@@ -134,10 +134,11 @@ def check_correctness(gold_outputs,
if
not
np
.
allclose
(
gold_outputs
[
i
],
outputs
[
i
],
rtol
,
atol
):
if
not
np
.
allclose
(
gold_outputs
[
i
],
outputs
[
i
],
rtol
,
atol
):
ret
=
False
ret
=
False
if
verbose
:
if
verbose
:
print
(
'
\n
Output {} is incorrect ...'
.
format
(
i
))
with
np
.
printoptions
(
threshold
=
np
.
inf
):
print
(
'Expected value:
\n
{}'
.
format
(
gold_outputs
[
i
]))
print
(
'
\n
Output {} is incorrect ...'
.
format
(
i
))
print
(
'......'
)
print
(
'Expected value:
\n
{}
\n
'
.
format
(
gold_outputs
[
i
]))
print
(
'Actual value:
\n
{}
\n
'
.
format
(
outputs
[
i
]))
print
(
'
\n
......
\n
'
)
print
(
'Actual value:
\n
{}
\n
'
.
format
(
outputs
[
i
]))
else
:
else
:
print
(
'Outputs do not match'
)
print
(
'Outputs do not match'
)
break
break
...
...
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