mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-12 12:40:20 +08:00
auto port kill before starting ddp
This commit is contained in:
@@ -421,6 +421,7 @@ class Trainer(TrainerIO):
|
||||
|
||||
# when using multi-node or DDP within a node start each module in a separate process
|
||||
if self.use_ddp:
|
||||
# clear any processes running on the ddp port
|
||||
self.__kill_ddp_ports(self.ddp_port)
|
||||
|
||||
# must copy only the meta of the exp so it survives pickle/unpickle when going to new process
|
||||
|
||||
Reference in New Issue
Block a user