SliceInitInfo

constructor(dataType: Tensor.DataType, size: Int = 1, channel: Int = 2)

Parameters

dataType

Data type of slice start, end and skip (must be the same). Only integral types are allowed.

size

Number of the elements.

channel

Number of channels, either 2 or 3; 2 means the slice is expressed as [START, END] whereas 3 means [START, END, SKIP].