Interface PreProcessor<I>

    • Method Detail

      • processInput

        NDList processInput​(TranslatorContext ctx,
                            I input)
                     throws java.lang.Exception
        Processes the input and converts it to NDList.
        Parameters:
        ctx - the toolkit for creating the input NDArray
        input - the input object
        Returns:
        the NDList after pre-processing
        Throws:
        java.lang.Exception - if an error occurs during processing input