From 22d692aa0ebce2389f5246f8ec11771c30c87d24 Mon Sep 17 00:00:00 2001 From: Tullie Murrell Date: Fri, 7 Aug 2020 08:43:54 -0700 Subject: [PATCH] Fix ddp for test --- pytorch_lightning/trainer/trainer.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/pytorch_lightning/trainer/trainer.py b/pytorch_lightning/trainer/trainer.py index ea8d7941d95f6..4232210ad9049 100644 --- a/pytorch_lightning/trainer/trainer.py +++ b/pytorch_lightning/trainer/trainer.py @@ -1351,7 +1351,6 @@ def __test_using_best_weights(self, ckpt_path, test_dataloaders): # run tests self.tested_ckpt_path = ckpt_path - self.set_random_port(force=True) self.testing = True os.environ['PL_TESTING_MODE'] = '1' self.model = model @@ -1374,7 +1373,6 @@ def __test_given_model(self, model, test_dataloaders): # run test # sets up testing so we short circuit to eval - self.set_random_port(force=True) self.testing = True self.model = model results = self.fit(model)