SliceΒΆ

Produces a slice of the input tensor along multiple axes. Similar to numpy: https://numpy.org/doc/stable/user/basics.indexing.html?highlight=slice#slicing-and-striding Slice uses the starts, ends, axes and steps inputs to select a sub-tensor of its input data tensor. An effective `starts[i…

Abstract Signature:

Slice(data: Tensor, starts, ends, axes, steps)

Keras

API: keras.ops.slice
Strategy: Direct Mapping

Apple MLX

API: mlx.core.slice
Strategy: Direct Mapping