Skip to content

Commit 01a52b9

Browse files
Relax tolerance in testMeanHuge.
PiperOrigin-RevId: 862320581
1 parent 63b2f28 commit 01a52b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tensorflow_probability/python/distributions/categorical_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ def testMeanHuge(self):
509509
num_logits = 10_000_000
510510
dist = categorical.Categorical(
511511
tf.zeros(num_logits), validate_args=True)
512-
self.assertAllClose(num_logits / 2, self.evaluate(dist.mean()))
512+
self.assertAllClose(num_logits / 2, self.evaluate(dist.mean()), rtol=1e-3)
513513

514514
def testVariance(self):
515515
histograms = np.array([[[0.2, 0.8], [0.6, 0.4]]])

0 commit comments

Comments
 (0)