Skip to content

Commit

Permalink
relax tolerance for dlpack test (apache#7325)
Browse files Browse the repository at this point in the history
  • Loading branch information
masahi authored and Lokiiiiii committed Mar 1, 2021
1 parent f680642 commit 237a9b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/python/contrib/test_dlpack.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def test():
f_pytorch = to_pytorch_func(f)
zz2 = torch.empty(137, 137)
f_pytorch(xx, yy, zz2)
tvm.testing.assert_allclose(zz.numpy(), zz2.numpy(), rtol=1e-6)
tvm.testing.assert_allclose(zz.numpy(), zz2.numpy(), rtol=1e-4, atol=1e-4)

except ImportError:
pass
Expand Down

0 comments on commit 237a9b8

Please sign in to comment.