mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-10-27 13:12:20 +08:00
auto port kill before starting ddp
This commit is contained in:
1 parent
446a44b085
commit
5439dc0844
1 file changed
+1
-1
@@ -567,7 +567,7 @@ class Trainer(TrainerIO):
|
||||
try:
|
||||
port = os.environ['MASTER_PORT']
|
||||
except Exception as e:
|
||||
port = self.default_ddp_port
|
||||
port = 12910
|
||||
os.environ['MASTER_PORT'] = f'{port}'
|
||||
|
||||
self._ddp_port = port
|
||||
|
||||
Reference in new issue
Block a user