From e4600832539907c42c3390aa92b7e3923bf6595c Mon Sep 17 00:00:00 2001 From: Double_V Date: Tue, 12 Apr 2022 13:58:17 +0800 Subject: [PATCH] Update utility.py --- tools/infer/utility.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/infer/utility.py b/tools/infer/utility.py index 37122f0a..6bcab270 100644 --- a/tools/infer/utility.py +++ b/tools/infer/utility.py @@ -316,6 +316,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) -- GitLab