未验证 提交 fa44ea5c 编写于 作者: C cyber-pioneer 提交者: GitHub

test case of batch_norm support cinn when training mode and nchw (#54862)

上级 6962d3e2
...@@ -108,7 +108,7 @@ class TestBatchNormOp(OpTest): ...@@ -108,7 +108,7 @@ class TestBatchNormOp(OpTest):
) )
def test_check_grad_scale_bias(self): def test_check_grad_scale_bias(self):
if self.data_format == "NCHW": if self.data_format == "NCHW" and self.training is False:
self.enable_cinn = False self.enable_cinn = False
if self.dtype == "float32": if self.dtype == "float32":
self.rev_comp_atol = 1e-3 self.rev_comp_atol = 1e-3
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册