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
1.6.2
GaoWei8 5 years ago committed by Tao Luo
parent 8b74fc4fa7
commit d683b65b1a

@ -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)

@ -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(

Loading…
Cancel
Save