Interface ServingTranslator

    • Method Detail

      • setArguments

        void setArguments​(java.util.Map<java.lang.String,​?> arguments)
        Sets the configurations for the Translator instance.
        Parameters:
        arguments - the configurations for the Translator instance
      • processStreamOutput

        default Output processStreamOutput​(TranslatorContext ctx,
                                           java.util.stream.Stream<NDList> list)
        Processes the output NDList to the corresponding output object.
        Specified by:
        processStreamOutput in interface StreamingTranslator<Input,​Output>
        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