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

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

上级 f6144d84
......@@ -36,7 +36,7 @@ class TestDropoutOp(OpTest):
self.check_output()
def test_check_grad_normal(self):
self.check_grad(['X'], 'Out', max_relative_error=0.05)
self.check_grad(['X'], 'Out')
class TestDropoutOp2(TestDropoutOp):
......
......@@ -40,7 +40,7 @@ class TestPadOp(OpTest):
self.check_output()
def test_check_grad_normal(self):
self.check_grad(['Y'], 'Out', max_relative_error=0.006)
self.check_grad(['Y'], 'Out')
def initTestCase(self):
self.x_shape = (16, 16)
......
......@@ -61,10 +61,9 @@ class TestSequenceSoftmaxOp(OpTest):
def test_check_grad(self):
if self.use_cudnn:
place = core.CUDAPlace(0)
self.check_grad_with_place(
place, ["X"], "Out", max_relative_error=0.01)
self.check_grad_with_place(place, ["X"], "Out")
else:
self.check_grad(["X"], "Out", max_relative_error=0.01)
self.check_grad(["X"], "Out")
# ----------------cudnn Sequencesoftmax----------------
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册