diff --git a/python/paddle/fluid/tests/unittests/test_conv_shift_op.py b/python/paddle/fluid/tests/unittests/test_conv_shift_op.py index 9305ef7b194e81473a225f800f7366e51a31e416..c4dbf4c3e2228c7caa8d03d1951f98b8a4e588c4 100644 --- a/python/paddle/fluid/tests/unittests/test_conv_shift_op.py +++ b/python/paddle/fluid/tests/unittests/test_conv_shift_op.py @@ -48,7 +48,7 @@ class TestConvShiftOp(OpTest): self.check_output() def test_check_grad_normal(self): - self.check_grad(['X', 'Y'], 'Out', max_relative_error=0.05) + self.check_grad(['X', 'Y'], 'Out') def test_check_grad_ignore_x(self): self.check_grad( diff --git a/python/paddle/fluid/tests/unittests/test_crop_op.py b/python/paddle/fluid/tests/unittests/test_crop_op.py index d7bcfba8deab1b73e4cbab8a27f9eeef9a37d29b..902b8605babafbaad78185fce576abd700ce7785 100644 --- a/python/paddle/fluid/tests/unittests/test_crop_op.py +++ b/python/paddle/fluid/tests/unittests/test_crop_op.py @@ -74,7 +74,7 @@ class TestCropOp(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') class TestCase1(TestCropOp): diff --git a/python/paddle/fluid/tests/unittests/test_crop_tensor_op.py b/python/paddle/fluid/tests/unittests/test_crop_tensor_op.py index b9be58a291d86247258a5c3e18387c6eea0a3a14..a4d5b849ab5b73c383a2f4e415b5402cbe3d90e3 100644 --- a/python/paddle/fluid/tests/unittests/test_crop_tensor_op.py +++ b/python/paddle/fluid/tests/unittests/test_crop_tensor_op.py @@ -80,7 +80,7 @@ class TestCropTensorOp(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') class TestCase1(TestCropTensorOp): @@ -178,7 +178,7 @@ class TestCropTensorOpTensorAttr(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") class TestCropTensorOpTensorAttrCase1(TestCropTensorOpTensorAttr): diff --git a/python/paddle/fluid/tests/unittests/test_lrn_op.py b/python/paddle/fluid/tests/unittests/test_lrn_op.py index bf6b555c4663781bcad50b282bb6d38969521520..fa8dba980bbe2b5b7cd9b1d1afd4261e039327b8 100644 --- a/python/paddle/fluid/tests/unittests/test_lrn_op.py +++ b/python/paddle/fluid/tests/unittests/test_lrn_op.py @@ -98,7 +98,7 @@ class TestLRNOp(OpTest): self.check_output() def test_check_grad_normal(self): - self.check_grad(['X'], 'Out', max_relative_error=0.01) + self.check_grad(['X'], 'Out') class TestLRNOpAttrDataFormat(TestLRNOp): diff --git a/python/paddle/fluid/tests/unittests/test_modified_huber_loss_op.py b/python/paddle/fluid/tests/unittests/test_modified_huber_loss_op.py index 86349f852c753a293df87179e0da02185ad37ea5..f7b6ad9bfee42c84283bf841270b83ff103914a9 100644 --- a/python/paddle/fluid/tests/unittests/test_modified_huber_loss_op.py +++ b/python/paddle/fluid/tests/unittests/test_modified_huber_loss_op.py @@ -57,7 +57,7 @@ class TestModifiedHuberLossOp(OpTest): self.check_output() def test_check_grad(self): - self.check_grad(['X'], 'Out', max_relative_error=0.01) + self.check_grad(['X'], 'Out') if __name__ == '__main__':