Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ddp for test #2866

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions pytorch_lightning/trainer/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down