Skip to content

Commit

Permalink
Remove unnecessary allclose parameters for consistency.
Browse files Browse the repository at this point in the history
  • Loading branch information
Niels Horn committed Feb 24, 2025
1 parent b0d4555 commit 0785521
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flax/nnx/nn/normalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ class WeightNorm(nnx.Module):
>>> w = model.normed_linear.layer_instance.kernel.value
>>> col_norms = np.linalg.norm(np.array(w), axis=0)
>>> np.testing.assert_allclose(col_norms, np.ones(4), rtol=1e-5, atol=1e-5)
>>> np.testing.assert_allclose(col_norms, np.ones(4))
Args:
layer_instance: The layer instance to wrap.
Expand Down

0 comments on commit 0785521

Please sign in to comment.