Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
g207004202
explainable-multimodal-classification
Commits
a445c718
Commit
a445c718
authored
May 11, 2021
by
Mao, Bojia
Browse files
recorrect onnx to device
parent
d735c192
Changes
1
Hide whitespace changes
Inline
Side-by-side
mmxai/onnx/onnxModel.py
View file @
a445c718
...
...
@@ -92,7 +92,7 @@ class ONNXInterface:
ort_outs
=
self
.
ort_session
.
run
([
output_name
],
ort_inputs
)
return
ort_outs
def
to
(
self
,
de
civ
e
):
def
to
(
self
,
de
vic
e
):
self
.
device
=
device
if
self
.
defaultmodel
!=
None
:
self
.
defaultmodel
.
to
(
device
)
...
...
Write
Preview
Supports
Markdown
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