Skip to content

Commit da1a2ac

Browse files
author
Ikko Eltociear Ashimine
authored
Update discharge.py
minor fix
1 parent 7d431ad commit da1a2ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jax/_src/state/discharge.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def _get_discharge(x, idx, tree):
245245
return x
246246
# If everything in the indexer is a slice or ()-shaped, we can also
247247
# use `lax.dynamic_slice` with 1-sized slices for ()-shaped indices.
248-
# We need to squeeze out the the 1-sized slices at the end.
248+
# We need to squeeze out the 1-sized slices at the end.
249249
if maybe_slice := _maybe_convert_to_dynamic_slice(indexer):
250250
starts, sizes, squeeze_dims = maybe_slice
251251
y = lax_slicing.dynamic_slice(x, starts, sizes)
@@ -279,7 +279,7 @@ def _swap_discharge(x, val, idx, tree):
279279
return x, val
280280
# If everything in the indexer is a slice or ()-shaped, we can also
281281
# use `lax.dynamic_slice` with 1-sized slices for ()-shaped indices.
282-
# We need to squeeze out the the 1-sized slices at the end.
282+
# We need to squeeze out the 1-sized slices at the end.
283283
if maybe_slice := _maybe_convert_to_dynamic_slice(indexer):
284284
starts, sizes, squeeze_dims = maybe_slice
285285
x_old = lax_slicing.dynamic_slice(x, starts, sizes)
@@ -308,7 +308,7 @@ def _addupdate_discharge(x, val, idx, tree):
308308
return x + val
309309
# If everything in the indexer is a slice or ()-shaped, we can also
310310
# use `lax.dynamic_slice` with 1-sized slices for ()-shaped indices.
311-
# We need to squeeze out the the 1-sized slices at the end.
311+
# We need to squeeze out the 1-sized slices at the end.
312312
if maybe_slice := _maybe_convert_to_dynamic_slice(indexer):
313313
starts, sizes, squeeze_dims = maybe_slice
314314
x_old = lax_slicing.dynamic_slice(x, starts, sizes)

0 commit comments

Comments
 (0)