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

fix accuracy parameters of op tests (#21729)

test=develop
上级 e92d1135
...@@ -35,7 +35,7 @@ class TestElementwiseOp(OpTest): ...@@ -35,7 +35,7 @@ class TestElementwiseOp(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.005) self.check_grad(['X', 'Y'], 'Out')
def test_check_grad_ingore_x(self): def test_check_grad_ingore_x(self):
self.check_grad( self.check_grad(
......
...@@ -35,7 +35,7 @@ class TestElementwiseOp(OpTest): ...@@ -35,7 +35,7 @@ class TestElementwiseOp(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.005) self.check_grad(['X', 'Y'], 'Out')
def test_check_grad_ingore_x(self): def test_check_grad_ingore_x(self):
self.check_grad( self.check_grad(
......
...@@ -31,7 +31,7 @@ class TestElementwiseOp(OpTest): ...@@ -31,7 +31,7 @@ class TestElementwiseOp(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.005) self.check_grad(['X', 'Y'], 'Out')
def test_check_grad_ingore_x(self): def test_check_grad_ingore_x(self):
self.check_grad( self.check_grad(
......
...@@ -90,9 +90,9 @@ def create_test_class(test_case, ...@@ -90,9 +90,9 @@ def create_test_class(test_case,
if not grad_chek: if not grad_chek:
return return
if self.attrs["save_intermediate_out"]: if self.attrs["save_intermediate_out"]:
self.check_grad(['X', 'Y'], ['Out'], max_relative_error=0.005) self.check_grad(['X', 'Y'], ['Out'])
else: else:
self.check_grad(['X', 'Y'], ['Out'], max_relative_error=0.005) self.check_grad(['X', 'Y'], ['Out'])
def test_check_grad_ingore_x(self): def test_check_grad_ingore_x(self):
if not grad_chek: if not grad_chek:
......
...@@ -116,7 +116,7 @@ class TestSequenceTopkAvgPoolingOp(OpTest): ...@@ -116,7 +116,7 @@ class TestSequenceTopkAvgPoolingOp(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.005) self.check_grad(['X'], 'Out')
class TestSequenceTopkAvgPoolingOpCase1(TestSequenceTopkAvgPoolingOp): class TestSequenceTopkAvgPoolingOpCase1(TestSequenceTopkAvgPoolingOp):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册