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
c7f0fbc4
Unverified
Commit
c7f0fbc4
authored
Oct 06, 2023
by
Charlie Lin
Committed by
GitHub
Oct 06, 2023
Browse files
compile options can be set for MIGX (#2298)
parent
65c37c3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
1 deletion
+27
-1
tools/accuracy/accuracy_checker.py
tools/accuracy/accuracy_checker.py
+27
-1
No files found.
tools/accuracy/accuracy_checker.py
View file @
c7f0fbc4
...
@@ -82,6 +82,27 @@ def parse_args():
...
@@ -82,6 +82,27 @@ def parse_args():
default
=
False
,
default
=
False
,
help
=
'Turn on ort VERBOSE logging via session options'
)
help
=
'Turn on ort VERBOSE logging via session options'
)
parser
.
add_argument
(
'--disable-offload-copy'
,
dest
=
"offload_copy"
,
action
=
'store_false'
,
default
=
True
,
help
=
'Disable offload copying (user must handle copy to and from device)'
)
parser
.
add_argument
(
'--disable-fast-math'
,
dest
=
"fast_math"
,
action
=
'store_false'
,
default
=
True
,
help
=
'Disable fast math optimizations (etc: rewrite_gelu)'
)
parser
.
add_argument
(
'--exhaustive_tune'
,
dest
=
"exhaustive_tune"
,
action
=
'store_true'
,
default
=
False
,
help
=
'Enable exhaustive tuning for solutions'
)
args
=
parser
.
parse_args
()
args
=
parser
.
parse_args
()
return
args
return
args
...
@@ -177,7 +198,12 @@ def main():
...
@@ -177,7 +198,12 @@ def main():
print
(
model
)
print
(
model
)
if
not
args
.
ort_run
:
if
not
args
.
ort_run
:
model
.
compile
(
migraphx
.
get_target
(
args
.
target
))
model
.
compile
(
migraphx
.
get_target
(
args
.
target
),
offload_copy
=
args
.
offload_copy
,
fast_math
=
args
.
fast_math
,
exhaustive_tune
=
args
.
exhaustive_tune
,
)
params
=
{}
params
=
{}
test_inputs
=
{}
test_inputs
=
{}
...
...
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