Skip to content

Commit

Permalink
increase atol for float32 (apache#8712)
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrdadh authored and ylc committed Jan 13, 2022
1 parent bd04b44 commit 9bcced5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/python/topi/python/test_topi_conv2d_nchw.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def test_conv2d_nchw(
if "int" in dtype:
tol = {"atol": 0, "rtol": 0}
elif dtype == "float32":
tol = {"rtol": 1e-4, "atol": 1e-5}
tol = {"rtol": 1e-4, "atol": 1e-4}
elif dtype == "float16":
# A summation in float16 with a single accumulator very
# quickly runs into large rounding errors. At some point,
Expand Down

0 comments on commit 9bcced5

Please sign in to comment.