From d683b65b1a4b4864955c7ca61512aedea02f8955 Mon Sep 17 00:00:00 2001 From: GaoWei8 <53294385+GaoWei8@users.noreply.github.com> Date: Thu, 19 Dec 2019 14:41:48 +0800 Subject: [PATCH] Remove self-set accuracy parameters of op tests: atol (#21711) * Remove self-set accuracy parameters of op tests:atol test=develop * keep smaller parameters test=develop * fix error test=develop --- .../fluid/tests/unittests/mkldnn/test_softmax_mkldnn_op.py | 2 +- python/paddle/fluid/tests/unittests/test_deformable_conv_op.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/paddle/fluid/tests/unittests/mkldnn/test_softmax_mkldnn_op.py b/python/paddle/fluid/tests/unittests/mkldnn/test_softmax_mkldnn_op.py index 769a921b80..9e2229cece 100644 --- a/python/paddle/fluid/tests/unittests/mkldnn/test_softmax_mkldnn_op.py +++ b/python/paddle/fluid/tests/unittests/mkldnn/test_softmax_mkldnn_op.py @@ -60,7 +60,7 @@ class TestSoftmaxMKLDNNOp(TestSoftmaxOp): # TODO(wangzhongpu): support mkldnn op in dygraph mode if self.use_cudnn: place = core.CUDAPlace(0) - self.check_output_with_place(place, atol=1e-5, check_dygraph=False) + self.check_output_with_place(place, check_dygraph=False) else: self.check_output(check_dygraph=False) diff --git a/python/paddle/fluid/tests/unittests/test_deformable_conv_op.py b/python/paddle/fluid/tests/unittests/test_deformable_conv_op.py index db3b2a8f96..513930d114 100644 --- a/python/paddle/fluid/tests/unittests/test_deformable_conv_op.py +++ b/python/paddle/fluid/tests/unittests/test_deformable_conv_op.py @@ -146,7 +146,7 @@ class TestModulatedDeformableConvOp(OpTest): self.outputs = {'Output': output} def test_check_output(self): - self.check_output(atol=1e-5) + self.check_output() def test_check_grad(self): self.check_grad( -- GitLab