Skip to content

Commit

Permalink
infinity anb beyond test was failing in torch==1.0.1 but not in torch…
Browse files Browse the repository at this point in the history
…_nightly, acceptable tolerance differs
  • Loading branch information
ferrine committed Mar 3, 2019
1 parent 673bfe1 commit 53514cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_poincare_math.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ def test_add_infinity_and_beyond(a, b, c):
z = poincare.math.expmap(a, -infty, c=c)
# they just need to be very far, exact answer is not supposed
tolerance = {
torch.float32: dict(rtol=3e-1, atol=1e-1),
torch.float32: dict(rtol=3e-1, atol=2e-1),
torch.float64: dict(rtol=1e-1, atol=1e-3),
}
np.testing.assert_allclose(z, -a, **tolerance[c.dtype])
Expand Down

0 comments on commit 53514cd

Please sign in to comment.