We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40f4738 commit 7e9ea70Copy full SHA for 7e9ea70
tools/accuracy_checker/openvino/tools/accuracy_checker/utils.py
@@ -954,7 +954,8 @@ def postprocess_output_name(
954
preprocessed_output_name = output_name.replace(matches[0], '')
955
else:
956
suffix_regex = re.compile(output_name + suffix_ + r'\d+')
957
- preprocessed_output_name = [layer_name for layer_name in outputs if suffix_regex.match(layer_name)][0]
+ preprocessed_output_name = [layer_name for layer_name in outputs if suffix_regex.match(layer_name)]
958
+ preprocessed_output_name = preprocessed_output_name[0] if preprocessed_output_name else ''
959
if preprocessed_output_name in outputs:
960
return preprocessed_output_name
961
if raise_error:
0 commit comments