Package ai.djl.inference.streaming
package ai.djl.inference.streaming
Contains classes to implement streaming inference tasks.
- See Also:
-
ClassDescriptionA {link BytesSupplier} that supports chunked reading.An
IteratorBytesSupplieris a streamingBytesSuppliersuitable for synchronous usage.AnPublisherBytesSupplieris a streamingBytesSuppliersuitable for reactive asynchronous usage.ABlockpossessing the additional streaming forward capabilities used byPredictor.streamingPredict(Object).StreamingTranslator<I,O> An expansion of theTranslatorwith postProcessing for theStreamingBlock(used byPredictor.streamingPredict(Object).AStreamingTranslator.StreamOutputrepresents a streamable output type (either iterative or asynchronous).What types ofStreamingTranslator.StreamOutputs are supported by aStreamingTranslator.