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
wangsen
paddle_dbnet
Commits
b62e6954
Commit
b62e6954
authored
Apr 12, 2022
by
LDOUBLEV
Browse files
fix rec output name error
parent
0b220341
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
tools/infer/utility.py
tools/infer/utility.py
+4
-0
No files found.
tools/infer/utility.py
View file @
b62e6954
...
@@ -323,6 +323,10 @@ def get_output_tensors(args, mode, predictor):
...
@@ -323,6 +323,10 @@ def get_output_tensors(args, mode, predictor):
output_name
=
'softmax_0.tmp_0'
output_name
=
'softmax_0.tmp_0'
if
output_name
in
output_names
:
if
output_name
in
output_names
:
return
[
predictor
.
get_output_handle
(
output_name
)]
return
[
predictor
.
get_output_handle
(
output_name
)]
else
:
for
output_name
in
output_names
:
output_tensor
=
predictor
.
get_output_handle
(
output_name
)
output_tensors
.
append
(
output_tensor
)
else
:
else
:
for
output_name
in
output_names
:
for
output_name
in
output_names
:
output_tensor
=
predictor
.
get_output_handle
(
output_name
)
output_tensor
=
predictor
.
get_output_handle
(
output_name
)
...
...
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