Skip to content

Commit ad361dd

Browse files
Modifying tolerance
1 parent 25243e2 commit ad361dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dpnp/tests/test_statistics.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,11 +253,11 @@ def test_correlate_random(self, a_size, v_size, mode, dtype, method):
253253
assert_dtype_allclose(result, expected, factor=factor)
254254
else:
255255
rtol = 1e-3
256-
atol = 1e-10
256+
atol = 1e-3
257257

258258
if rdtype == dpnp.float64 or rdtype == dpnp.complex128:
259259
rtol = 1e-6
260-
atol = 1e-12
260+
atol = 1e-6
261261
elif rdtype == dpnp.bool:
262262
result = result.astype(dpnp.int32)
263263
rdtype = result.dtype
@@ -271,7 +271,7 @@ def test_correlate_random(self, a_size, v_size, mode, dtype, method):
271271
# This usually happens when the resulting array contains values close to zero.
272272
# For these outliers, the relative error can be significant.
273273
# We can tolerate a few such outliers.
274-
max_outliers = 8 if expected.size > 1 else 0
274+
max_outliers = 10 if expected.size > 1 else 0
275275
if invalid.sum() > max_outliers:
276276
assert_dtype_allclose(result, expected, factor=1000)
277277

0 commit comments

Comments
 (0)