get

operator fun get(indices: IntRange): PipelineTensorSlice

Create a slice on channels using bracket operators from IntRange like 1..2

Note Cannot be called on tensors of scene graph usage.

Return

reference to this slice, with the channel slice being updated according to the input IntRange.

Parameters

indices

the slices on each dimension, must have the same number of IntRange as the number of this tensor's dimensions.

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.


operator fun get(indexAndSkips: IntProgression): PipelineTensorSlice

Create a slice on channels using bracket operators from IntProgression. Different from the overloaded method that uses IntRange as inputs, IntProgression allows skip and backward iteration. Similarly, there must be the same number of IntProgression inputs as the number of this tensor's dimensions

Note Cannot be called on tensors of scene graph usage.

Return

reference to this slice, with the channel slice being updated according to the input IntProgression.

Parameters

indexAndSkips

the slice (start, end and skip) along each dimension.

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.