Skip to content

Commit f78483a

Browse files
Johannes Ballécopybara-github
authored andcommitted
Fixes too small tolerance in unit test.
PiperOrigin-RevId: 635489346 Change-Id: I54d3c8e4356bab2a4261771d583c3b689ad12bcd
1 parent a41fc70 commit f78483a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorflow_compression/python/ops/quantization_ops_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def test_rounding_is_unbiased(self):
7171
rounded = gen_ops.stochastic_round(replicated, 1., ())
7272
self.assertEqual(rounded.dtype, tf.int32)
7373
averaged = tf.reduce_mean(tf.cast(rounded, tf.float32), axis=0)
74-
self.assertAllClose(values, averaged, atol=5e-3, rtol=0)
74+
self.assertAllClose(values, averaged, atol=1e-2, rtol=0)
7575

7676

7777
if __name__ == "__main__":

0 commit comments

Comments
 (0)