Class PtDistilBertTranslatorFactory
- java.lang.Object
-
- ai.djl.pytorch.zoo.nlp.sentimentanalysis.PtDistilBertTranslatorFactory
-
- All Implemented Interfaces:
ai.djl.translate.TranslatorFactory
public class PtDistilBertTranslatorFactory extends java.lang.Object implements ai.djl.translate.TranslatorFactory
AnTranslatorFactory
that creates aPtDistilBertTranslator
instance.
-
-
Constructor Summary
Constructors Constructor Description PtDistilBertTranslatorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<ai.djl.util.Pair<java.lang.reflect.Type,java.lang.reflect.Type>>
getSupportedTypes()
<I,O>
ai.djl.translate.Translator<I,O>newInstance(java.lang.Class<I> input, java.lang.Class<O> output, ai.djl.Model model, java.util.Map<java.lang.String,?> arguments)
-
-
-
Method Detail
-
getSupportedTypes
public java.util.Set<ai.djl.util.Pair<java.lang.reflect.Type,java.lang.reflect.Type>> getSupportedTypes()
- Specified by:
getSupportedTypes
in interfaceai.djl.translate.TranslatorFactory
-
newInstance
public <I,O> ai.djl.translate.Translator<I,O> newInstance(java.lang.Class<I> input, java.lang.Class<O> output, ai.djl.Model model, java.util.Map<java.lang.String,?> arguments)
- Specified by:
newInstance
in interfaceai.djl.translate.TranslatorFactory
-
-