Skip to content

Commit c53873d

Browse files
SeanNarencarmocca
andauthored
Update pytorch_lightning/plugins/training_type/ddp_spawn.py
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
1 parent 531dfb8 commit c53873d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytorch_lightning/plugins/training_type/ddp_spawn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def __init__(
5959
self.sync_batchnorm = sync_batchnorm
6060
self._ddp_kwargs = kwargs
6161
self.dist = LightningDistributed()
62-
self.num_processes = len(parallel_devices) if parallel_devices is not None else parallel_devices
62+
self.num_processes = len(parallel_devices) if parallel_devices is not None else None
6363
self.node_rank = 0
6464
self.mp_queue = None
6565

0 commit comments

Comments
 (0)