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
revert-27520-disable_pr
zhang wenhui 4 years ago committed by GitHub
parent 597345d17b
commit 6e16a0997c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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):

Loading…
Cancel
Save