Slice - version 10#

This page documents version 10 of operator Slice. See Slice for the latest version (since version 13).

  • Domain: ai.onnx

  • Since version: 10

Produces a slice of the input tensor along multiple axes.

Inputs

  • data (T): Tensor of data to extract slices from.

  • starts (Tind): 1-D tensor of starting indices of corresponding axis in axes

  • ends (Tind): 1-D tensor of ending indices (exclusive) of corresponding axis in axes

  • axes (Tind): 1-D tensor of axes that starts and ends apply to.

  • steps (Tind): 1-D tensor of slice step of corresponding axis in axes. Default to 1.

Outputs

  • output (T): Sliced data tensor.

Type Constraints

  • T: Constrain input and output types to all tensor types. Allowed types: tensor(bool), tensor(complex128), tensor(complex64), tensor(double), tensor(float), tensor(float16), tensor(int16), tensor(int32), tensor(int64), tensor(int8), tensor(string), tensor(uint16), tensor(uint32), tensor(uint64), tensor(uint8).

  • Tind: Constrain indices to integer types Allowed types: tensor(int32), tensor(int64).