Package ej.microai
Class InputTensor
- java.lang.Object
-
- ej.microai.Tensor
-
- ej.microai.InputTensor
-
public class InputTensor extends Tensor
TheInputTensor
class offers services to deal with MicroAI input tensors.InputTensor
is 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 void
setInputData(byte[] inputData)
Loads the input data into the input tensor.void
setInputData(float[] inputData)
Loads the input data into the input tensor.void
setInputData(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.inputData
is 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.inputData
is 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.inputData
is a float array.- Parameters:
inputData
- the data to be loaded into the tensor.
-
-