Skip to content

Commit 967c38d

Browse files
author
jax authors
committed
Merge pull request #20666 from curlup:main
PiperOrigin-RevId: 623250005
2 parents cd2b91c + 44b4703 commit 967c38d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jax/_src/numpy/lax_numpy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4936,8 +4936,8 @@ def _index_to_gather(x_shape: Sequence[int], idx: Sequence[Any],
49364936
"with type {} at position {}, indexer value {}")
49374937
raise TypeError(msg.format(abstract_i.dtype.name, idx_pos, i))
49384938

4939-
msg = "Indexing mode not yet supported. Open a feature request!\n{}"
4940-
raise IndexError(msg.format(idx))
4939+
raise IndexError("Indexing mode not yet supported. Got unsupported indexer "
4940+
f"at position {idx_pos}: {i!r}")
49414941

49424942
if len(gather_indices) == 0:
49434943
gather_indices_array: ArrayLike = np.zeros((0,), dtype=index_dtype)

0 commit comments

Comments
 (0)