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
66c91c9e
Commit
66c91c9e
authored
May 18, 2023
by
umangyadav
Browse files
fix format string
parent
74f9b2e8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tools/accuracy/accuracy_checker.py
tools/accuracy/accuracy_checker.py
+3
-3
No files found.
tools/accuracy/accuracy_checker.py
View file @
66c91c9e
...
@@ -97,7 +97,7 @@ def parse_args():
...
@@ -97,7 +97,7 @@ def parse_args():
'Save output of ORT as numpy array at path provided by this argument'
)
'Save output of ORT as numpy array at path provided by this argument'
)
args
=
parser
.
parse_args
()
args
=
parser
.
parse_args
()
if
args
.
verbose
:
if
args
.
verbose
:
print
(
"Tolerance is set at {args.tolerance}"
)
print
(
f
"Tolerance is set at
{
args
.
tolerance
}
"
)
return
args
return
args
...
@@ -213,7 +213,7 @@ def main():
...
@@ -213,7 +213,7 @@ def main():
in_path
=
args
.
np_path
[
args
.
numpy
.
index
(
name
)]
in_path
=
args
.
np_path
[
args
.
numpy
.
index
(
name
)]
if
args
.
verbose
:
if
args
.
verbose
:
print
(
print
(
"Loading numpy array for input name : {name}, from path : {in_path}"
f
"Loading numpy array for input name :
{
name
}
, from path :
{
in_path
}
"
)
)
test_input
=
np
.
load
(
in_path
).
astype
(
get_np_datatype
(
in_type
))
test_input
=
np
.
load
(
in_path
).
astype
(
get_np_datatype
(
in_type
))
elif
not
args
.
fill1
and
not
args
.
fill0
:
elif
not
args
.
fill1
and
not
args
.
fill0
:
...
@@ -249,7 +249,7 @@ def main():
...
@@ -249,7 +249,7 @@ def main():
if
(
args
.
save_ort
):
if
(
args
.
save_ort
):
if
args
.
verbose
:
if
args
.
verbose
:
print
(
print
(
"saving ORT result as numpy array at location : {args.save_ort}"
f
"saving ORT result as numpy array at location :
{
args
.
save_ort
}
"
)
)
np
.
save
(
args
.
save_ort
,
pred_fw
)
np
.
save
(
args
.
save_ort
,
pred_fw
)
except
Exception
as
e
:
except
Exception
as
e
:
...
...
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