PyTorch
API: torch.take
Strategy: Direct Mapping
JAX (Core)
API: jax.numpy.take
Strategy: Direct Mapping
NumPy
API: numpy.take
Strategy: Direct Mapping
Keras
API: keras.ops.take
Strategy: Direct Mapping
TensorFlow
API: tf.gather
Strategy: Macro 'tf.gather(tf.reshape({input}, [-1]), {index})'
Apple MLX
API: mlx.core.take
Strategy: Macro 'mlx.core.take(mlx.core.flatten({input}), {index})'
Flax NNX
API: jax.numpy.take
Strategy: Direct Mapping
PaxML / Praxis
API: jax.numpy.take
Strategy: Direct Mapping