Skip to content

Commit 9aa8ec6

Browse files
committed
fix scan out_axes
1 parent 50cd169 commit 9aa8ec6

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)