Skip to content

Commit

Permalink
Merge pull request #3540 from google:linen-fix-scan-out-axes
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 588945218
  • Loading branch information
Flax Authors committed Dec 8, 2023
2 parents 50cd169 + 9aa8ec6 commit 870847e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flax/core/axes_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def transpose_from_front(ax, xs):

def trans(x):
if ax < 0:
pax = x.ndim - ax
pax = x.ndim + ax
else:
pax = ax
assert pax < x.ndim
Expand Down

0 comments on commit 870847e

Please sign in to comment.