asByteArray
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.
Return
The selected range of the tensor content as byte array.
Throws
If the tensor's datatype is not Tensor.DataType.INT8.