Slice
Description
Obtains the slice of the input tensor.
Input
Five inputs:
x: tensor of type float, float16, int8, int16, int32, int64, uint8, uint16, uint32, uint64, double or bool.
starts: 1Dtensor of type int32 or int64, indicating the start index position.
ends: 1Dtensor of type int32 or int64, indicating the end index position.
axes: (optional) 1Dtensor of type int32 or int64, specifying the axis along which to slice. Must be in the range [-r, r - 1] (r indicates the rank of the input data).
steps: (optional) 1Dtensor of type int32 or int64, indicating the slice step. The value of steps of the last axis must be 1.
Output
One output:
y: tensor data after slicing. Has the identical data type as input x.
Constraints
x: The dimension of the input tensor cannot be 1.
ONNX Opset Support
Opset v8/v9/v10/v11/v12/v13/v14/v15/v16/v17/v18