Skip to content

Commit c93da2f

Browse files
authored
Revert "fix: setitem in ak firsts with jax backend (#3455)" (#3460)
This reverts commit aeb9618.
1 parent aeb9618 commit c93da2f

File tree

2 files changed

+1
-23
lines changed

2 files changed

+1
-23
lines changed

Diff for: src/awkward/operations/ak_firsts.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
_named_axis_to_positional_axis,
1111
_remove_named_axis,
1212
)
13-
from awkward._nplikes.jax import Jax
1413
from awkward._nplikes.numpy_like import NumpyMetadata
1514
from awkward._nplikes.shape import unknown_length
1615
from awkward._regularize import regularize_axis
@@ -107,10 +106,7 @@ def action(layout, depth, backend, **kwargs):
107106
stops = layout.stops.data
108107

109108
empties = starts == stops
110-
if isinstance(layout.backend.nplike, Jax):
111-
index = index.at[empties].set(-1)
112-
else:
113-
index[empties] = -1
109+
index[empties] = -1
114110

115111
return ak.contents.IndexedOptionArray.simplified(
116112
ak.index.Index64(index), layout._content

Diff for: tests/test_3454_jax_ak_firsts.py

-18
This file was deleted.

0 commit comments

Comments
 (0)