Package ej.microai
Class InputTensor
- java.lang.Object
-
- ej.microai.Tensor
-
- ej.microai.InputTensor
-
public class InputTensor extends Tensor
TheInputTensorclass offers services to deal with MicroAI input tensors.InputTensoris an input 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 voidsetInputData(byte[] inputData)Loads the input data into the input tensor.voidsetInputData(float[] inputData)Loads the input data into the input tensor.voidsetInputData(int[] inputData)Loads the input data into the input tensor.-
Methods inherited from class ej.microai.Tensor
getDataType, getNumberBytes, getNumberDimensions, getNumberElements, getQuantizationParams, getShape, isQuantized
-
-
-
-
Method Detail
-
setInputData
public void setInputData(byte[] inputData)
Loads the input data into the input tensor.inputDatais an array of signed or unsigned bytes.- Parameters:
inputData- the data to be loaded into the tensor.
-
setInputData
public void setInputData(int[] inputData)
Loads the input data into the input tensor.inputDatais an array of signed or unsigned integer.- Parameters:
inputData- the data to be loaded into the tensor.
-
setInputData
public void setInputData(float[] inputData)
Loads the input data into the input tensor.inputDatais a float array.- Parameters:
inputData- the data to be loaded into the tensor.
-
-