fn
gpu_take
::mlx::core::array gpu_take(const ::mlx::core::array & src, const ::mlx::core::array & idx, int axis, NegativeIndex negative)take(src, idx, axis) under policy B: whole slices of src picked along axis in a single Metal pass. The result is src.shape[:axis] + idx.shape + src.shape[axis + 1:].