@@ -245,7 +245,7 @@ def _get_discharge(x, idx, tree):
245
245
return x
246
246
# If everything in the indexer is a slice or ()-shaped, we can also
247
247
# 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.
249
249
if maybe_slice := _maybe_convert_to_dynamic_slice (indexer ):
250
250
starts , sizes , squeeze_dims = maybe_slice
251
251
y = lax_slicing .dynamic_slice (x , starts , sizes )
@@ -279,7 +279,7 @@ def _swap_discharge(x, val, idx, tree):
279
279
return x , val
280
280
# If everything in the indexer is a slice or ()-shaped, we can also
281
281
# 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.
283
283
if maybe_slice := _maybe_convert_to_dynamic_slice (indexer ):
284
284
starts , sizes , squeeze_dims = maybe_slice
285
285
x_old = lax_slicing .dynamic_slice (x , starts , sizes )
@@ -308,7 +308,7 @@ def _addupdate_discharge(x, val, idx, tree):
308
308
return x + val
309
309
# If everything in the indexer is a slice or ()-shaped, we can also
310
310
# 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.
312
312
if maybe_slice := _maybe_convert_to_dynamic_slice (indexer ):
313
313
starts , sizes , squeeze_dims = maybe_slice
314
314
x_old = lax_slicing .dynamic_slice (x , starts , sizes )
0 commit comments