Skip to content

Commit

Permalink
[TEST] Fix flaky topi/tests/python/test_topi_pooling.py:test_adaptive…
Browse files Browse the repository at this point in the history
…_pool (apache#5736)
  • Loading branch information
tqchen authored and trevor-m committed Jun 18, 2020
1 parent b3bd0b6 commit b489087
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion topi/tests/python/test_topi_pooling.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def check_device(device):
b = tvm.nd.array(np.zeros(get_const_tuple(oshape), dtype=out.dtype), ctx)
f = tvm.build(s, [data, out], device)
f(a, b)
tvm.testing.assert_allclose(b.asnumpy(), np_out, rtol=1e-5)
tvm.testing.assert_allclose(b.asnumpy(), np_out, rtol=4e-5, atol=1e-6)

for device in get_all_backend():
check_device(device)
Expand Down

0 comments on commit b489087

Please sign in to comment.