[XLA] Adjust test size
PiperOrigin-RevId: 382539747
Change-Id: I4887d202826b89a72c9eebcd23acdf322552fa0b
diff --git a/tensorflow/compiler/tests/random_ops_test.py b/tensorflow/compiler/tests/random_ops_test.py
index bd1411d..9ea2b22 100644
--- a/tensorflow/compiler/tests/random_ops_test.py
+++ b/tensorflow/compiler/tests/random_ops_test.py
@@ -81,7 +81,7 @@
'stddev': 2.0
})
def testRandomNormal(self, mean, stddev):
- num_elts = 10000000
+ num_elts = 1000000
for dtype in self._random_types() & self.float_types:
with self.session():
with self.test_scope():
@@ -156,7 +156,7 @@
if x.dtype == dtypes.bfloat16:
atol = rtol = 1e-1
else:
- atol = rtol = 2e-3
+ atol = rtol = 2e-2
self.assertAllClose(actual_mean, expected_mean, atol=atol, rtol=rtol)
expected_median = mu + probit(