Skip to content

Commit 500d349

Browse files
author
Flax Authors
committed
Merge pull request #2182 from yechengxi:patch-1
PiperOrigin-RevId: 454138229
2 parents c182c7d + 68c47cc commit 500d349

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flax/core/nn/normalization.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
import jax.numpy as jnp
2121

2222

23-
def _absolute_dims(rank, dims):
24-
return tuple(rank + dim if dim < 0 else dim for dim in dims)
23+
def _absolute_dims(ndim, dims):
24+
return tuple(ndim + dim if dim < 0 else dim for dim in dims)
2525

2626

2727
def batch_norm(scope: Scope,

0 commit comments

Comments
 (0)