未验证 提交 14fd6cfb 编写于 作者: P pangyoki 提交者: GitHub

fix gelu grad precision (#34089)

上级 1edf4374
......@@ -60,7 +60,10 @@ class TestGelu(OpTest):
def test_check_grad(self):
self.check_grad_with_place(
self.place, ['X'], 'Out', check_dygraph=False)
self.place, ['X'],
'Out',
check_dygraph=False,
max_relative_error=0.007)
@unittest.skipIf(not paddle.is_compiled_with_npu(),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册