Package ai.djl.translate
Contains classes and interfaces that translate between java objects and NDArrays.
- See Also:
Translator,Batchifier,Pipeline
-
Interface Summary Interface Description Batchifier Ensembleable<T> Represents a class that can be ensembled (or averaged).ExpansionTranslatorFactory.TranslatorExpansion<IbaseT,ObaseT> A function from a base translator to an expanded translator.NDArraySupplier Represents a supplier ofNDArray.NoBatchifyTranslator<I,O> ATranslatorthat does not use aBatchifier.PostProcessor<O> An interface that provides post-processing functionality.PreProcessor<I> An interface that provides pre-processing functionality.ServingTranslator Transform An interface to apply various transforms to the input.Translator<I,O> TheTranslatorinterface provides model pre-processing and postprocessing functionality.TranslatorContext TheTranslatorContextinterface provides a toolkit for pre-processing and postprocessing functionality.TranslatorFactory A utility class createsTranslatorinstances.TranslatorOptions A set of possible options forTranslators with different input and output types. -
Class Summary Class Description ArgumentsUtil A utility class to extract data from model's arguments.BasicTranslator<I,O> DefaultTranslatorFactory A default implementation ofTranslatorFactory.DeferredTranslatorFactory ATranslatorFactorythat creates theTranslatorbased on serving.properties file.ExpansionTranslatorFactory<IbaseT,ObaseT> NoopServingTranslatorFactory ATranslatorFactorythat creates aRawTranslatorinstance.NoopTranslator A no operationalTranslatorimplementation.PaddingStackBatchifier The padding stack batchifier is aStackBatchifierthat also pads elements to reach the same length.PaddingStackBatchifier.Builder Builder to build aPaddingStackBatchifier.Pipeline Pipelineallows applying multiple transforms on an inputNDList.ServingTranslatorFactory ATranslatorFactorythat creates a genericTranslator.SimplePaddingStackBatchifier A simpler version of thePaddingStackBatchifierthat pads all dimensions rather than specific ones.StackBatchifier StackBatchifieris used to merge a list of samples to form a mini-batch of NDArray(s). -
Exception Summary Exception Description TranslateException Thrown to indicate that an error is raised during processing of the input or output.