change atol and rtol
@@ -12,7 +12,7 @@ class _TestBase:
self.check_unary_linspace0_1('ndtr')
def test_log_ndtr(self):
- self.check_unary_linspace0_2('log_ndtr')
+ self.check_unary_linspace0_1('log_ndtr')
def test_ndtri(self):
self.check_unary_linspace0_1('ndtri')
@@ -59,16 +59,11 @@ class TestSpecial(_TestBase):
return self._check_unary(a, name, scp)
@testing.for_dtypes(['e', 'f', 'd'])
- @testing.numpy_cupy_allclose(atol=atol, rtol=rtol, scipy_name='scp')
+ @testing.numpy_cupy_allclose(atol=1e-6, rtol=1e-6, scipy_name='scp')
def check_unary_linspace0_1(self, name, xp, scp, dtype):
p = xp.linspace(0, 1, 1000, dtype=dtype)
return self._check_unary(p, name, scp)
- @testing.for_dtypes(['e', 'f', 'd'])
- @testing.numpy_cupy_allclose(rtol=1e-6, scipy_name='scp')
- def check_unary_linspace0_2(self, name, xp, scp, dtype):
- p = xp.linspace(0, 1, 1000, dtype=dtype)
- return self._check_unary(p, name, scp)
def test_logit_nonfinite(self):
logit = cupyx.scipy.special.logit
@@ -144,17 +139,11 @@ class TestFusionSpecial(_TestBase):
return self._check_unary(a, name, scp)
@testing.for_dtypes(['e', 'f', 'd'])
- @testing.numpy_cupy_allclose(atol=atol, rtol=rtol, scipy_name='scp')
+ @testing.numpy_cupy_allclose(atol=1e-6, rtol=1e-6, scipy_name='scp')
def check_unary_linspace0_1(self, name, xp, scp, dtype):
a = xp.linspace(0, 1, 1000, dtype)
return self._check_unary(a, name, scp)
- @testing.for_dtypes(['e', 'f', 'd'])
- @testing.numpy_cupy_allclose(rtol=1e-6, scipy_name='scp')
- def check_unary_linspace0_2(self, name, xp, scp, dtype):
- p = xp.linspace(0, 1, 1000, dtype=dtype)
- return self._check_unary(p, name, scp)
-
class _TestDistributionsBase:
