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
e4ab0ebe
Unverified
Commit
e4ab0ebe
authored
Apr 12, 2022
by
andyjpaddle
Committed by
GitHub
Apr 12, 2022
Browse files
Merge pull request #5950 from LDOUBLEV/dygraph
fix rec output name error
parents
a8318353
243f89da
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 @
e4ab0ebe
...
...
@@ -323,6 +323,10 @@ def get_output_tensors(args, mode, predictor):
output_name
=
'softmax_0.tmp_0'
if
output_name
in
output_names
:
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
:
for
output_name
in
output_names
:
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