From fd223db99e410fcacbf79735d0987e4cfcfa7fde Mon Sep 17 00:00:00 2001 From: Tim Fischer Date: Thu, 15 Feb 2024 11:05:43 +0100 Subject: [PATCH] verif: Fix gelu relative error calculation --- sw/dnn/gelu/verify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sw/dnn/gelu/verify.py b/sw/dnn/gelu/verify.py index cdcf1a4ec2..eadc5e1da4 100755 --- a/sw/dnn/gelu/verify.py +++ b/sw/dnn/gelu/verify.py @@ -51,7 +51,7 @@ def main(): ofmap_actual = from_buffer(raw_results['ofmap'], ctype_from_precision_t(prec)) ofmap_golden = golden_model(ifmap).detach().numpy().flatten() - fail, rel_err = check_result(ofmap_golden, ofmap_actual, rtol=ERR_THRESHOLD) + fail, rel_err = check_result(ofmap_actual, ofmap_golden, rtol=ERR_THRESHOLD) # Print results if fail: