From 68fef6243c739e7d36203bcef98682767c557346 Mon Sep 17 00:00:00 2001 From: Maxim Vafin Date: Wed, 4 Oct 2023 22:55:11 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Roman Kazantsev --- tests/model_hub_tests/models_hub_common/test_convert_model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/model_hub_tests/models_hub_common/test_convert_model.py b/tests/model_hub_tests/models_hub_common/test_convert_model.py index 50b63e02009..68e58a0658d 100644 --- a/tests/model_hub_tests/models_hub_common/test_convert_model.py +++ b/tests/model_hub_tests/models_hub_common/test_convert_model.py @@ -73,13 +73,13 @@ class TestConvertModel: "OpenVINO outputs does not contain tensor with name {}".format(out_name) cur_ov_res = ov_outputs[out_name] print(f"fw_re: {cur_fw_res};\n ov_res: {cur_ov_res}") - is_ok = is_ok or compare_two_tensors(cur_ov_res, cur_fw_res, fw_eps) + is_ok = is_ok and compare_two_tensors(cur_ov_res, cur_fw_res, fw_eps) else: for i in range(len(ov_outputs)): cur_fw_res = fw_outputs[i] cur_ov_res = ov_outputs[i] print(f"fw_res: {cur_fw_res};\n ov_res: {cur_ov_res}") - is_ok = is_ok or compare_two_tensors(cur_ov_res, cur_fw_res, fw_eps) + is_ok = is_ok and compare_two_tensors(cur_ov_res, cur_fw_res, fw_eps) assert is_ok, "Accuracy validation failed" def teardown_method(self):