SequenceParallel#
- class prose.core.sequence.SequenceParallel[source]#
A multi-process
Sequenceof blocks to be executed in parallel.Caution
SequenceParallelis 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_blocksallow 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
Blockobjects to sequentially process images- Parameters:
blocks (list) – list of
Blockobjectsname (str, optional) – name of the sequence, by default None
Methods
__init__(blocks[, data_blocks, name])A sequence of
Blockobjects to sequentially process imagesReturn the citations of the sequence
from_args(args)run(images[, terminate, show_progress, loader])Run the sequence
Run the
Block.terminatemethod of all blocksAttributes
argsblockslist of
Blockobjectsparams_strprocessing_timeTotal processing time of the sequence last run