Class ImageFeatureExtractor

    • Method Detail

      • processOutput

        public byte[] processOutput​(TranslatorContext ctx,
                                    NDList list)
        Processes the output NDList to the corresponding output object.
        Parameters:
        ctx - the toolkit used for post-processing
        list - the output NDList after inference, usually immutable in engines like PyTorch. @see Issue 1774
        Returns:
        the output object of expected type
      • builder

        public static ImageFeatureExtractor.Builder builder​(java.util.Map<java.lang.String,​?> arguments)
        Creates a builder to build a ImageFeatureExtractor with specified arguments.
        Parameters:
        arguments - arguments to specify builder options
        Returns:
        a new builder