Skip to content

Commit 59877b9

Browse files
basioli-kFlax Authors
authored andcommitted
Internal changes
PiperOrigin-RevId: 773625044
1 parent dcd2f5e commit 59877b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/linen/linen_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def test_layer_norm(self, reduction_axes, use_fast_variance=True):
287287
y_one_liner = (
288288
x - x.mean(axis=reduction_axes, keepdims=True)
289289
) * jax.lax.rsqrt(x.var(axis=reduction_axes, keepdims=True) + e)
290-
np.testing.assert_allclose(y_one_liner, y, atol=1e-4)
290+
np.testing.assert_allclose(y_one_liner, y, atol=1e-3, rtol=1e-3)
291291

292292
@parameterized.parameters(
293293
{'reduction_axes': -1}, {'reduction_axes': 1}, {'reduction_axes': (1, 2)}

0 commit comments

Comments
 (0)