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

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

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

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

* keep smaller parameters
test=develop
上级 ecb2419e
...@@ -48,7 +48,7 @@ class TestConvShiftOp(OpTest): ...@@ -48,7 +48,7 @@ class TestConvShiftOp(OpTest):
self.check_output() self.check_output()
def test_check_grad_normal(self): 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): def test_check_grad_ignore_x(self):
self.check_grad( self.check_grad(
......
...@@ -74,7 +74,7 @@ class TestCropOp(OpTest): ...@@ -74,7 +74,7 @@ class TestCropOp(OpTest):
self.check_output() self.check_output()
def test_check_grad_normal(self): def test_check_grad_normal(self):
self.check_grad(['X'], 'Out', max_relative_error=0.006) self.check_grad(['X'], 'Out')
class TestCase1(TestCropOp): class TestCase1(TestCropOp):
......
...@@ -80,7 +80,7 @@ class TestCropTensorOp(OpTest): ...@@ -80,7 +80,7 @@ class TestCropTensorOp(OpTest):
self.check_output() self.check_output()
def test_check_grad_normal(self): def test_check_grad_normal(self):
self.check_grad(['X'], 'Out', max_relative_error=0.006) self.check_grad(['X'], 'Out')
class TestCase1(TestCropTensorOp): class TestCase1(TestCropTensorOp):
...@@ -178,7 +178,7 @@ class TestCropTensorOpTensorAttr(OpTest): ...@@ -178,7 +178,7 @@ class TestCropTensorOpTensorAttr(OpTest):
self.check_output() self.check_output()
def test_check_grad_normal(self): def test_check_grad_normal(self):
self.check_grad(["X"], "Out", max_relative_error=0.006) self.check_grad(["X"], "Out")
class TestCropTensorOpTensorAttrCase1(TestCropTensorOpTensorAttr): class TestCropTensorOpTensorAttrCase1(TestCropTensorOpTensorAttr):
......
...@@ -98,7 +98,7 @@ class TestLRNOp(OpTest): ...@@ -98,7 +98,7 @@ class TestLRNOp(OpTest):
self.check_output() self.check_output()
def test_check_grad_normal(self): def test_check_grad_normal(self):
self.check_grad(['X'], 'Out', max_relative_error=0.01) self.check_grad(['X'], 'Out')
class TestLRNOpAttrDataFormat(TestLRNOp): class TestLRNOpAttrDataFormat(TestLRNOp):
......
...@@ -57,7 +57,7 @@ class TestModifiedHuberLossOp(OpTest): ...@@ -57,7 +57,7 @@ class TestModifiedHuberLossOp(OpTest):
self.check_output() self.check_output()
def test_check_grad(self): def test_check_grad(self):
self.check_grad(['X'], 'Out', max_relative_error=0.01) self.check_grad(['X'], 'Out')
if __name__ == '__main__': if __name__ == '__main__':
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册