PipelineTensorSlice
Parameters
the original tensor to be sliced, i.e., element source.
the slice tensor on dimensions.
Create an slice onto a tensor from Kotlin's IntRanges, with an integer as the skip, rather than a pre-define Tensor of slice usage. With this constructor, you can easily create a slice from Kotlin's IntProgression.
Parameters
the tensor as slice source.
the slice with IntProgression for start, end and skip on each dimension of the originalTensor.
Throws
If the usage is not allowed by the SpatialML run-time Framework, or if the framework encounter internal error and cannot perform the requested behavior.
Create an slice onto a tensor from Kotlin's IntRanges, rather than a pre-defined Tensor of slice usage. With this constructor, you can easily create a slice of an existing tensor using originTensor[0..5, 0..-1] etc.
Parameters
the tensor as slice source.
the slices (start and end) for each dimension on the originalTensor.
Throws
If the usage is not allowed by the SpatialML run-time Framework, or if the framework encounter internal error and cannot perform the requested behavior.