public class InputTensor extends Tensor
InputTensor
class offers services to deal with MicroAI input tensors.
InputTensor
is an input of your MLInferenceEngine
.
Tensor.DataType, Tensor.QuantizationParameters
Modifier and Type | Method and 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.
|
getDataType, getNumberBytes, getNumberDimensions, getNumberElements, getQuantizationParams, getShape, isQuantized
public void setInputData(byte[] inputData)
inputData
is an array of signed or unsigned bytes.
inputData
- the data to be loaded into the tensor.public void setInputData(float[] inputData)
inputData
is a float array.
inputData
- the data to be loaded into the tensor.public void setInputData(int[] inputData)
inputData
is an array of signed or unsigned integer.
inputData
- the data to be loaded into the tensor.