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 NDArraySupplier Represents a supplier ofNDArray
.NoBatchifyTranslator<I,O> ATranslator
that 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> TheTranslator
interface provides model pre-processing and postprocessing functionality.TranslatorContext TheTranslatorContext
interface provides a toolkit for pre-processing and postprocessing functionality.TranslatorFactory A utility class createsTranslator
instances. -
Class Summary Class Description ArgumentsUtil A utility class to extract data from model's arguments.DefaultTranslatorFactory A default implementation ofTranslatorFactory
.NoopTranslator A no operationalTranslator
implementation.PaddingStackBatchifier The padding stack batchifier is aStackBatchifier
that also pads elements to reach the same length.PaddingStackBatchifier.Builder Builder to build aPaddingStackBatchifier
.Pipeline Pipeline
allows applying multiple transforms on an inputNDList
.ServingTranslatorFactory ATranslatorFactory
that creates an genericTranslator
.StackBatchifier StackBatchifier
is 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.