Skip to content

Commit

Permalink
verif: Fix gelu relative error calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
fischeti committed Feb 15, 2024
1 parent a6fb6bc commit fd223db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sw/dnn/gelu/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit fd223db

Please sign in to comment.