SelectΒΆ

Slices the input tensor along the selected dimension at the given index.

Abstract Signature:

Select(input: Tensor, dim: int, index: int)

PyTorch

API: torch.select
Strategy: Direct Mapping

JAX (Core)

API: jax.lax.index_take
Strategy: Direct Mapping

NumPy

API: numpy.take
Strategy: Direct Mapping

Keras

API: keras.ops.take
Strategy: Direct Mapping

TensorFlow

API: tf.gather
Strategy: Direct Mapping

Apple MLX

API: β€”
Strategy: Custom / Partial

Flax NNX

API: jax.numpy.select
Strategy: Direct Mapping

PaxML / Praxis

API: jax.numpy.select
Strategy: Direct Mapping