Slice
A handy class to easily read a range of the tensor's content.
Parameters
The tensor content.
Which range of tensor's content will be read.
Functions
Reads the selected range from the tensor as Bytes. The tensor must be of Tensor.DataType.INT8, otherwise you cannot read its content as ByteArray.
Reads the selected range from the tensor as doubles. The tensor must be of Tensor.DataType.FLOAT64, otherwise you cannot read its content as DoubleArray.
Reads the selected range from the tensor as floats. The tensor must be of Tensor.DataType.FLOAT32, otherwise you cannot read its content as FloatArray.
Reads the selected range from the tensor as integers. The tensor must be of Tensor.DataType.INT32, otherwise you cannot read its content as IntArray.
Reads the selected range from the tensor as Shorts. The tensor must be of Tensor.DataType.INT16, otherwise you cannot read its content as ShortArray.