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