We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f5dca4 commit ea3e8f5Copy full SHA for ea3e8f5
tensorflow_compression/python/distributions/uniform_noise_test.py
@@ -75,6 +75,10 @@ def test_stats_throw_error(self):
75
with self.assertRaises(NotImplementedError):
76
dist.survival_function(.5)
77
78
+ def test_quantizes_to_mode_decimal_part(self):
79
+ dist = self.dist_cls(loc=-3.75, scale=1.)
80
+ self.assertEqual(helpers.quantization_offset(dist), .25)
81
+
82
83
class NoisyNormalTest(LocationScaleTest, tf.test.TestCase):
84
0 commit comments