TakeΒΆ
Returns a new tensor with the elements of input at the given indices (flattened).
Abstract Signature:
Take(input: Tensor, index: Tensor)
TensorFlow
API:
tf.gatherStrategy: Macro 'tf.gather(tf.reshape({input}, [-1]), {index})'
Apple MLX
API:
mlx.core.takeStrategy: Macro 'mlx.core.take(mlx.core.flatten({input}), {index})'