Skip to content

Commit 870847e

Browse files
author
Flax Authors
committed
Merge pull request #3540 from google:linen-fix-scan-out-axes
PiperOrigin-RevId: 588945218
2 parents 50cd169 + 9aa8ec6 commit 870847e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flax/core/axes_scan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def transpose_from_front(ax, xs):
100100

101101
def trans(x):
102102
if ax < 0:
103-
pax = x.ndim - ax
103+
pax = x.ndim + ax
104104
else:
105105
pax = ax
106106
assert pax < x.ndim

0 commit comments

Comments
 (0)