public class OutputTensor extends Tensor
OutputTensor
class offers services to deal with MicroAI output tensors.
OutputTensor
is an output of your MLInferenceEngine
.
Tensor.DataType, Tensor.QuantizationParameters
Modifier and Type | Method and Description |
---|---|
void |
getOutputData(byte[] outputData)
Gets the output data of the tensor.
|
void |
getOutputData(float[] outputData)
Gets the output data of the tensor.
|
void |
getOutputData(int[] outputData)
Gets the output data of the tensor.
|
getDataType, getNumberBytes, getNumberDimensions, getNumberElements, getQuantizationParams, getShape, isQuantized
public void getOutputData(byte[] outputData)
outputData
is an array of signed or unsigned bytes.
outputData
- the inference result as byte array.public void getOutputData(float[] outputData)
outputData
is a float array.
outputData
- the inference result as float array.public void getOutputData(int[] outputData)
outputData
is an array of signed or unsigned integers.
outputData
- the inference result as integer array.