Interface PostProcessor<O>

    • Method Detail

      • processOutput

        O processOutput​(TranslatorContext ctx,
                        NDList list)
                 throws java.lang.Exception
        Processes the output NDList to the corresponding output object.
        Parameters:
        ctx - the toolkit used for post-processing
        list - the output NDList after inference
        Returns:
        the output object of expected type
        Throws:
        java.lang.Exception - if an error occurs during processing output