Package ej.microai

Class OutputTensor


  • public class OutputTensor
    extends Tensor
    The OutputTensor class offers services to deal with MicroAI output tensors.

    OutputTensor is an output of your MLInferenceEngine.

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