diff --git a/tools/infer/utility.py b/tools/infer/utility.py index fd2605d963db38ed74908f4e069fa480cfd01baf..b16aecd496ec291fcbe9c66dccf3ec04bb662034 100644 --- a/tools/infer/utility.py +++ b/tools/infer/utility.py @@ -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)