SequenceParallel#
- class prose.core.sequence.SequenceParallel[source]#
A multi-process
Sequence
of blocks to be executed in parallel.Caution
SequenceParallel
is an experimental feature and not all blocks are compatible with it. If you encounter issues (or for debugging) you should switch back to a normalSequence
.The
data_blocks
allow blocks carying large amount of data to be run sequentially so that they are not copied from one process to another.- Parameters:
blocks (list) – A list of blocks to be executed in parallel.
data_blocks (list, optional) – A list of data blocks to be executed in parallel.
name (str, optional) – A name for the sequence.
A sequence of
Block
objects to sequentially process images- Parameters:
blocks (list) – list of
Block
objectsname (str, optional) – name of the sequence, by default None
Methods
__init__
(blocks[, data_blocks, name])A sequence of
Block
objects to sequentially process imagesReturn the citations of the sequence
from_args
(args)run
(images[, terminate, show_progress, loader])Run the sequence
Run the
Block.terminate
method of all blocksAttributes
args
blocks
list of
Block
objectsparams_str
processing_time
Total processing time of the sequence last run