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

fix unittest_group_norm_op_v2, test=develop (#27486)

* fix unittest_group_norm_op_v2, test=develop

* fix unittest_group_norm_op_v2, test=develop
上级 597345d1
......@@ -56,7 +56,10 @@ 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))
result = np.allclose(y1, y2)
if not result:
print("y1:", y1, "\ty2:", y2)
self.assertTrue(result)
test_weight_bias_false()
def test_static(self):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册