Class SemanticSegmentationTranslatorFactory

    • Constructor Detail

      • SemanticSegmentationTranslatorFactory

        public SemanticSegmentationTranslatorFactory()
    • Method Detail

      • newInstance

        public Translator<?,​?> newInstance​(java.lang.Class<?> input,
                                                 java.lang.Class<?> output,
                                                 Model model,
                                                 java.util.Map<java.lang.String,​?> arguments)
        Returns a new instance of the Translator class.
        Specified by:
        newInstance in interface TranslatorFactory
        Parameters:
        input - the input class
        output - the output class
        model - the Model that uses the Translator
        arguments - the configurations for a new Translator instance
        Returns:
        a new instance of the Translator class
      • getSupportedTypes

        public java.util.Set<ai.djl.util.Pair<java.lang.reflect.Type,​java.lang.reflect.Type>> getSupportedTypes()
        Returns supported input/output classes.
        Specified by:
        getSupportedTypes in interface TranslatorFactory
        Returns:
        a set of supported input/output classes