Package ej.microai
Class OutputTensor
- java.lang.Object
-
- ej.microai.Tensor
-
- ej.microai.OutputTensor
-
public class OutputTensor extends Tensor
TheOutputTensor
class offers services to deal with MicroAI output tensors.OutputTensor
is 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 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.-
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.outputData
is 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.outputData
is 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.outputData
is a float array.- Parameters:
outputData
- the inference result as float array.
-
-