Skip to content

Commit e38f16f

Browse files
author
Anna Grebneva
authored
Added support of reference in str format (#3068)
1 parent 0e96599 commit e38f16f

File tree

1 file changed

+1
-0
lines changed
  • tools/accuracy_checker/openvino/tools/accuracy_checker

1 file changed

+1
-0
lines changed

tools/accuracy_checker/openvino/tools/accuracy_checker/presenters.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ def compare_with_ref(reference, res_value, name=None):
228228
ref = reference.get(name)
229229
else:
230230
ref = reference
231+
ref = ref if ref is None else float(ref)
231232
if ref is None:
232233
return None
233234
return abs(ref - res_value), abs(ref - res_value) / ref

0 commit comments

Comments
 (0)