Skip to content

Commit

Permalink
[UnitTest] Updated tolerances to avoid flaky unit test.
Browse files Browse the repository at this point in the history
The result was correct, but the atol was just small enough to trigger
a CI error for a value that was close to zero in an unrelated PR at
#8670.

https://ci.tlcpack.ai/blue/organizations/jenkins/tvm/detail/PR-8670/16/pipeline/#step-236-log-1703
  • Loading branch information
Lunderberg committed Aug 12, 2021
1 parent 76a7fa9 commit 59d88da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def get_output(data, lib):
actual_output = get_output(data, lib)
expected_output = get_output(data, lib2)

tvm.testing.assert_allclose(actual_output, expected_output, rtol=1e-4, atol=1e-4)
tvm.testing.assert_allclose(actual_output, expected_output, rtol=1e-4, atol=2e-4)


def test_conv2d():
Expand Down

0 comments on commit 59d88da

Please sign in to comment.