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
8e43d94f
Commit
8e43d94f
authored
May 11, 2021
by
Mao, Bojia
Browse files
recorrect onnx to device
parent
cfdeaae6
Changes
1
Hide whitespace changes
Inline
Side-by-side
mmxai/onnx/onnxModel.py
View file @
8e43d94f
...
...
@@ -126,7 +126,7 @@ class ONNXInterface:
scores
=
nn
.
functional
.
softmax
(
torch
.
tensor
(
logits
),
dim
=
1
)
if
scoreFlag
s
:
if
scoreFlag
==
True
:
return
scores
confidence
,
label
=
torch
.
max
(
scores
,
dim
=
1
)
...
...
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