Batch
BatchedPipeline
BatchedPipeline.transform_stream()
Special sequence type that is recognized by BatchPipeline.
Combine consecutive objects into a batch.
Example
with Pipeline() as p: # a is a scalar a = ... with BatchedPipeline(): # a is a sequence ... # a is a scalar again
Run the stream through all nodes and return it.
stream – A stream to transform. This argument is solely to be used internally.
Stream – An iterable of stream objects.