Slice - version 11#
This page documents version 11 of operator Slice. See Slice for the latest version (since version 13).
Domain:
ai.onnxSince version: 11
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
axesends (Tind): 1-D tensor of ending indices (exclusive) of corresponding axis in
axesaxes (Tind): 1-D tensor of axes that
startsandendsapply to. Negative value means counting dimensions from the back. Accepted range is [-r, r-1] where r = rank(data).steps (Tind): 1-D tensor of slice step of corresponding axis in
axes. Negative value means slicing backward. ‘steps’ cannot be 0. Defaults 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).
Differences with previous version (10)#
SchemaDiff: Slice (domain 'ai.onnx')
old version: 10
new version: 11
breaking: no