Package ej.microai
Class OutputTensor
- java.lang.Object
-
- ej.microai.Tensor
-
- ej.microai.OutputTensor
-
public class OutputTensor extends Tensor
TheOutputTensorclass offers services to deal with MicroAI output tensors.OutputTensoris an output of yourMLInferenceEngine.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ej.microai.Tensor
Tensor.DataType, Tensor.QuantizationParameters
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgetOutputData(byte[] outputData)Gets the output data of the tensor.voidgetOutputData(float[] outputData)Gets the output data of the tensor.voidgetOutputData(int[] outputData)Gets the output data of the tensor.-
Methods inherited from class ej.microai.Tensor
getDataType, getNumberBytes, getNumberDimensions, getNumberElements, getQuantizationParams, getShape, isQuantized
-
-
-
-
Method Detail
-
getOutputData
public void getOutputData(byte[] outputData)
Gets the output data of the tensor.outputDatais an array of signed or unsigned bytes.- Parameters:
outputData- the inference result as byte array.
-
getOutputData
public void getOutputData(int[] outputData)
Gets the output data of the tensor.outputDatais an array of signed or unsigned integers.- Parameters:
outputData- the inference result as integer array.
-
getOutputData
public void getOutputData(float[] outputData)
Gets the output data of the tensor.outputDatais a float array.- Parameters:
outputData- the inference result as float array.
-
-