Skip to content

Commit 8bc63a0

Browse files
Johannes Ballécopybara-github
authored andcommitted
Adjusts tolerance of a unit test slightly.
PiperOrigin-RevId: 298366310 Change-Id: I9648e2e6b532b4b65686797812ba953efb34d04e
1 parent 40cf959 commit 8bc63a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorflow_compression/python/layers/entropy_models_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def test_normalization(self):
237237
likelihood, = sess.run([likelihood], {inputs: x})
238238
self.assertEqual(x.shape, likelihood.shape)
239239
integral = np.sum(likelihood) * .0005
240-
self.assertAllClose(1, integral, rtol=0, atol=1e-4)
240+
self.assertAllClose(1, integral, rtol=0, atol=2e-4)
241241

242242
def test_entropy_estimates(self):
243243
# Test that entropy estimates match actual range coding.

0 commit comments

Comments
 (0)