From b00fc1989482f0eb3e2f651f4c749cebbdc7931a Mon Sep 17 00:00:00 2001 From: Arjun Suresh Date: Wed, 20 Sep 2023 02:28:58 +0100 Subject: [PATCH] Update verify_performance.py (Please merge after the submission deadline) (#1463) * Update verify_performance.py Currently this check is meaningless * Update verify_performance.py --------- Co-authored-by: Mitchelle Rasquinha <80070689+mrasquinha-g@users.noreply.github.com> --- compliance/nvidia/TEST05/verify_performance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compliance/nvidia/TEST05/verify_performance.py b/compliance/nvidia/TEST05/verify_performance.py index ff47cc64e..8e2439796 100644 --- a/compliance/nvidia/TEST05/verify_performance.py +++ b/compliance/nvidia/TEST05/verify_performance.py @@ -139,7 +139,7 @@ def main(): (ref_mode == "MultiStream" and float(ref_score) <= 1600000): threshold = 0.20 - if float(test_score) < float(ref_score) * (1 + threshold): + if (ref_mode == "Offline" and float(test_score) > float(ref_score) * (1 - threshold)) or ("Stream" in ref_mode and float(test_score) < float(ref_score) * (1 + threshold)): print("TEST PASS") else: print("TEST FAIL: Test score invalid")