提交 a9af87ed 编写于 作者: G GaoWei8 提交者: Tao Luo

Remove self-set accuracy parameters of op tests: max_relative_error (#21823)

* Remove self-set accuracy parameters of op tests: max_relative_error
test=develop

* fix error
test=develop
上级 e53d5967
......@@ -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)
......
......@@ -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"
......
......@@ -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(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册