diff --git a/python/paddle/fluid/tests/unittests/test_elementwise_mod_op.py b/python/paddle/fluid/tests/unittests/test_elementwise_mod_op.py index c4740e063ff1baaaf4f2f13090eae5fcb7d3ec6c..2c0fdf51769782e046b1b18ebd31782c81fd49f0 100644 --- a/python/paddle/fluid/tests/unittests/test_elementwise_mod_op.py +++ b/python/paddle/fluid/tests/unittests/test_elementwise_mod_op.py @@ -74,7 +74,7 @@ class TestElementwiseModOpFloat(TestElementwiseModOp): self.out = np.fmod(self.y + np.fmod(self.x, self.y), self.y) def test_check_output(self): - self.check_output(atol=2e-5) + self.check_output() class TestElementwiseModOpDouble(TestElementwiseModOpFloat): diff --git a/python/paddle/fluid/tests/unittests/test_grid_sampler_op.py b/python/paddle/fluid/tests/unittests/test_grid_sampler_op.py index c2529e0d70c9a359d2a44c671769d50a92650a73..85c14d4f9770122ba9286a73a3ca798a9ed5b905 100644 --- a/python/paddle/fluid/tests/unittests/test_grid_sampler_op.py +++ b/python/paddle/fluid/tests/unittests/test_grid_sampler_op.py @@ -108,7 +108,7 @@ class TestGridSamplerOp(OpTest): self.outputs = {'Output': GridSampler(x, grid)} def test_check_output(self): - self.check_output(atol=1e-3) + self.check_output() def test_check_grad_normal(self): self.check_grad(['X', 'Grid'], 'Output', max_relative_error=0.61) diff --git a/python/paddle/fluid/tests/unittests/test_matmul_op.py b/python/paddle/fluid/tests/unittests/test_matmul_op.py index f60630b22f364cfa9c070839330589d76ac9e7e6..bdf87fea8e33472ff6d59768daffcf813a9604ae 100644 --- a/python/paddle/fluid/tests/unittests/test_matmul_op.py +++ b/python/paddle/fluid/tests/unittests/test_matmul_op.py @@ -100,7 +100,7 @@ class Generator(object): self.outputs = {'Out': Out} def test_check_output(self): - self.check_output(atol=1e-3) + self.check_output() def test_check_grad_normal(self): self.check_grad(['X', 'Y'], 'Out', max_relative_error=1e-3) diff --git a/python/paddle/fluid/tests/unittests/test_matmul_op_with_head.py b/python/paddle/fluid/tests/unittests/test_matmul_op_with_head.py index 3cca8af2d4973ed84f891101511432a102d1b84f..e180faf3806e7bc394a844283c513e36489f6b45 100644 --- a/python/paddle/fluid/tests/unittests/test_matmul_op_with_head.py +++ b/python/paddle/fluid/tests/unittests/test_matmul_op_with_head.py @@ -130,7 +130,7 @@ class GeneratorMulHead(object): self.outputs = {'Out': Out} def test_check_output(self): - self.check_output(atol=1e-3) + self.check_output() def inject_test_multiple_head(dim_x, dim_y, trans_x, trans_y, head_number): @@ -260,7 +260,7 @@ class GeneratorMulHead2(object): self.outputs = {'Out': Out} def test_check_output(self): - self.check_output(atol=1e-3) + self.check_output() def inject_test_multiple_head2(dim_x, dim_y, trans_x, trans_y, head_number): diff --git a/python/paddle/fluid/tests/unittests/test_sequence_concat.py b/python/paddle/fluid/tests/unittests/test_sequence_concat.py index 8f960f8750f0b1e553ab4adae369a71198029215..527577199860e714fcaf3afaa4bde02322e27fa9 100644 --- a/python/paddle/fluid/tests/unittests/test_sequence_concat.py +++ b/python/paddle/fluid/tests/unittests/test_sequence_concat.py @@ -40,7 +40,7 @@ class TestSequenceConcat(OpTest): self.outputs = {"Out": (out, [self.out_lod])} def test_output(self): - self.check_output(1e-3) + self.check_output() def test_dx(self): self.check_grad(inputs_to_check=['x1', 'x2'], output_names="Out")