Skip to content

Commit

Permalink
FIX failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jmschrei committed Jul 7, 2024
1 parent 3b99bdd commit 583293d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/distributions/test_gamma.py
Original file line number Diff line number Diff line change
Expand Up @@ -1034,8 +1034,8 @@ def test_serialization(X):
d2 = torch.load(".pytest.torch")
os.system("rm .pytest.torch")

assert_array_almost_equal(d2.rates, rates)
assert_array_almost_equal(d2._log_rates, numpy.log(rates))
assert_array_almost_equal(d2.rates, rates, 4)
assert_array_almost_equal(d2._log_rates, numpy.log(rates), 4)

assert_array_almost_equal(d2._w_sum, [3., 3., 3.])
assert_array_almost_equal(d2._xw_sum, [11. , 4.2, 4.4])
Expand Down

0 comments on commit 583293d

Please sign in to comment.