Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
taegyunkim committed Jan 10, 2025
1 parent 2f6f723 commit 9d22b57
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/profiling/test_accuracy.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def spend_cpu_3():
# We allow 5% error:
TOLERANCE = 0.05


def assert_almost_equal(value, target, tolerance=TOLERANCE):
if abs(value - target) / target > tolerance:
raise AssertionError(
Expand Down

0 comments on commit 9d22b57

Please sign in to comment.