未验证 提交 af709240 编写于 作者: Z zhang wenhui 提交者: GitHub

fix test_group_norm_op_v2.py, test=develop (#28104)

上级 d43f75e4
......@@ -91,7 +91,7 @@ class TestDygraphGroupNormv2(unittest.TestCase):
x = np.random.randn(*shape).astype("float32")
y1 = compute_v1(x)
y2 = compute_v2(x)
self.assertTrue(np.allclose(y1, y2))
self.assertTrue(np.allclose(y1, y2, atol=1e-5))
if __name__ == '__main__':
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册