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
Bw-bestperf
SAM
Commits
02acff78
Commit
02acff78
authored
Apr 15, 2023
by
Eric Mintun
Browse files
Fix lint.
parent
3518c86b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
scripts/export_onnx_model.py
scripts/export_onnx_model.py
+1
-1
No files found.
scripts/export_onnx_model.py
View file @
02acff78
...
@@ -161,7 +161,7 @@ def run_export(
...
@@ -161,7 +161,7 @@ def run_export(
if
onnxruntime_exists
:
if
onnxruntime_exists
:
ort_inputs
=
{
k
:
to_numpy
(
v
)
for
k
,
v
in
dummy_inputs
.
items
()}
ort_inputs
=
{
k
:
to_numpy
(
v
)
for
k
,
v
in
dummy_inputs
.
items
()}
# set cpu provider default
# set cpu provider default
providers
=
[
'
CPUExecutionProvider
'
]
providers
=
[
"
CPUExecutionProvider
"
]
ort_session
=
onnxruntime
.
InferenceSession
(
output
,
providers
=
providers
)
ort_session
=
onnxruntime
.
InferenceSession
(
output
,
providers
=
providers
)
_
=
ort_session
.
run
(
None
,
ort_inputs
)
_
=
ort_session
.
run
(
None
,
ort_inputs
)
print
(
"Model has successfully been run with ONNXRuntime."
)
print
(
"Model has successfully been run with ONNXRuntime."
)
...
...
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