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

swt-req
zhang wenhui 5 years ago committed by GitHub
parent d43f75e4cc
commit af70924061
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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__':

Loading…
Cancel
Save