Package ai.djl.translate
Interface NoBatchifyTranslator<I,O>
- All Superinterfaces:
PostProcessor<O>,PreProcessor<I>,Translator<I,O>
- All Known Implementing Classes:
BigGANTranslator,QaServingTranslator,Sam2Translator,SpeechRecognitionTranslator,StyleTransferTranslator,TextClassificationServingTranslator,TokenClassificationServingTranslator
A
Translator that does not use a Batchifier.
There are two major cases for avoiding the use of a Batchifier.
First, you want to translate between Batches rather than
Records. For example, you might go from String[] to Int[].
The second option is when using a model that does not use batching. Then, the model expects only a single record at a time.
- See Also:
-
Method Summary
Methods inherited from interface ai.djl.translate.PostProcessor
processOutputMethods inherited from interface ai.djl.translate.PreProcessor
processInputMethods inherited from interface ai.djl.translate.Translator
batchProcessInput, batchProcessOutput, getExpansions, prepare
-
Method Details
-
getBatchifier
Returns theBatchifier.- Specified by:
getBatchifierin interfaceTranslator<I,O> - Returns:
- the
Batchifier
-