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
Ready the selected range from the tensor as Bytes. The tensor must be a of Tensor.DataType.INT8, otherwise you cannot read its content as ByteArray.
Ready the selected range from the tensor as doubles. The tensor must be a of Tensor.DataType.FLOAT64, otherwise you cannot read its content as DoubleArray.
Ready the selected range from the tensor as floats. The tensor must be a of Tensor.DataType.FLOAT32, otherwise you cannot read its content as FloatArray.
Ready the selected range from the tensor as integers. The tensor must be a of Tensor.DataType.INT32, otherwise you cannot read its content as IntArray.
Ready the selected range from the tensor as Shorts. The tensor must be a of Tensor.DataType.INT16, otherwise you cannot read its content as ShortArray.