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

Remove self-set accuracy parameters of op tests: atol (#21731)

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

* add cast
test=develop

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

* lrn_ngraph_op
test=develop

* Keep smaller parameters
test=develop
上级 c924353d
......@@ -74,7 +74,7 @@ class TestElementwiseModOpFloat(TestElementwiseModOp):
self.out = np.fmod(self.y + np.fmod(self.x, self.y), self.y)
def test_check_output(self):
self.check_output(atol=2e-5)
self.check_output()
class TestElementwiseModOpDouble(TestElementwiseModOpFloat):
......
......@@ -108,7 +108,7 @@ class TestGridSamplerOp(OpTest):
self.outputs = {'Output': GridSampler(x, grid)}
def test_check_output(self):
self.check_output(atol=1e-3)
self.check_output()
def test_check_grad_normal(self):
self.check_grad(['X', 'Grid'], 'Output', max_relative_error=0.61)
......
......@@ -100,7 +100,7 @@ class Generator(object):
self.outputs = {'Out': Out}
def test_check_output(self):
self.check_output(atol=1e-3)
self.check_output()
def test_check_grad_normal(self):
self.check_grad(['X', 'Y'], 'Out', max_relative_error=1e-3)
......
......@@ -130,7 +130,7 @@ class GeneratorMulHead(object):
self.outputs = {'Out': Out}
def test_check_output(self):
self.check_output(atol=1e-3)
self.check_output()
def inject_test_multiple_head(dim_x, dim_y, trans_x, trans_y, head_number):
......@@ -260,7 +260,7 @@ class GeneratorMulHead2(object):
self.outputs = {'Out': Out}
def test_check_output(self):
self.check_output(atol=1e-3)
self.check_output()
def inject_test_multiple_head2(dim_x, dim_y, trans_x, trans_y, head_number):
......
......@@ -40,7 +40,7 @@ class TestSequenceConcat(OpTest):
self.outputs = {"Out": (out, [self.out_lod])}
def test_output(self):
self.check_output(1e-3)
self.check_output()
def test_dx(self):
self.check_grad(inputs_to_check=['x1', 'x2'], output_names="Out")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册