morphocut.batch.
Batch
Special sequence type that is recognized by BatchPipeline.
BatchedPipeline
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
transform_stream
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.