From 5439dc0844d8d73ce741bf83d60c32ff6cc47e16 Mon Sep 17 00:00:00 2001 From: William Falcon Date: Wed, 24 Jul 2019 14:38:09 -0400 Subject: [PATCH] auto port kill before starting ddp --- pytorch_lightning/models/trainer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytorch_lightning/models/trainer.py b/pytorch_lightning/models/trainer.py index acb2964b..16870931 100644 --- a/pytorch_lightning/models/trainer.py +++ b/pytorch_lightning/models/trainer.py @@ -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