ParallelStrategy¶
- class lightning.fabric.strategies.ParallelStrategy(accelerator=None, parallel_devices=None, cluster_environment=None, checkpoint_io=None, precision=None)[source]¶
- 
Strategy for training with multiple processes in parallel. - all_gather(tensor, group=None, sync_grads=False)[source]¶
- Perform a all_gather on all processes. - Return type:
 
 - reduce_boolean_decision(decision, all=True)[source]¶
- Reduces a boolean decision over distributed processes. By default is analogous to - allfrom the standard library, returning- Trueonly if all input decisions evaluate to- True. If- allis set to- False, it behaves like- anyinstead.
 - teardown()[source]¶
- This method is called to teardown the training process. - It is the right place to release memory and free other resources. - Return type: