Package ej.microai

Class InputTensor


  • public class InputTensor
    extends Tensor
    The InputTensor class offers services to deal with MicroAI input tensors.

    InputTensor is an input of your MLInferenceEngine.

    • 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.