diff --git a/python/paddle/fluid/tests/unittests/test_pad_op.py b/python/paddle/fluid/tests/unittests/test_pad_op.py index 26a4bc649d8e9845f529375fe0252c00224d2117..69bf2996474e8a30ecc6f15e91a09d320cd64c0c 100644 --- a/python/paddle/fluid/tests/unittests/test_pad_op.py +++ b/python/paddle/fluid/tests/unittests/test_pad_op.py @@ -43,7 +43,7 @@ class TestPadOp(OpTest): self.check_output() def test_check_grad_normal(self): - self.check_grad(['X'], 'Out', max_relative_error=0.006) + self.check_grad(['X'], 'Out') def initTestCase(self): self.shape = (16, 16) diff --git a/python/paddle/fluid/tests/unittests/test_pool3d_op.py b/python/paddle/fluid/tests/unittests/test_pool3d_op.py index b7e20df6907d8d40be548f20326d4e6b7476628a..ade7e9f50fd27a3bd4084a628eff445e0d81db0d 100644 --- a/python/paddle/fluid/tests/unittests/test_pool3d_op.py +++ b/python/paddle/fluid/tests/unittests/test_pool3d_op.py @@ -261,10 +261,9 @@ class TestPool3d_Op(OpTest): return if self.has_cudnn() and self.pool_type != "max": place = core.CUDAPlace(0) - self.check_grad_with_place( - place, set(['X']), 'Out', max_relative_error=0.07) + self.check_grad_with_place(place, set(['X']), 'Out') elif self.pool_type != "max": - self.check_grad(set(['X']), 'Out', max_relative_error=0.07) + self.check_grad(set(['X']), 'Out') def init_data_format(self): self.data_format = "NCDHW" diff --git a/python/paddle/fluid/tests/unittests/test_smooth_l1_loss_op.py b/python/paddle/fluid/tests/unittests/test_smooth_l1_loss_op.py index 39c99fd17e9eeaeb0632ad4e7ea0e70a7d54101e..201aa17cdd0f2b41d375b5b031bbdc6b6d85d415 100644 --- a/python/paddle/fluid/tests/unittests/test_smooth_l1_loss_op.py +++ b/python/paddle/fluid/tests/unittests/test_smooth_l1_loss_op.py @@ -88,7 +88,7 @@ class TestSmoothL1LossOp2(OpTest): self.check_output() def test_check_grad_normal(self): - self.check_grad(['X', 'Y'], 'Out', max_relative_error=0.03) + self.check_grad(['X', 'Y'], 'Out') def test_check_grad_ingore_x(self): self.check_grad(