Skip to content

Commit 36a5819

Browse files
author
Orbax Authors
committed
Internal change
PiperOrigin-RevId: 830898521
1 parent 573c64a commit 36a5819

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

checkpoint/orbax/checkpoint/_src/arrays/numpy_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def resolve_slice(xs: NdSlice, shape: Shape) -> NdSlice:
5151
constituent slices.
5252
"""
5353
return tuple(
54-
slice(x.start or 0, x.stop if x.stop is not None else n, x.step or 1)
54+
slice(*x.indices(n))
5555
if isinstance(x, slice) else slice(x, x+1, 1)
5656
for x, n in zip(() if xs is Ellipsis else xs, shape))
5757

0 commit comments

Comments
 (0)