Skip to content

Commit

Permalink
fix tpu tests
Browse files Browse the repository at this point in the history
  • Loading branch information
williamFalcon committed Jun 30, 2020
1 parent fc26078 commit 04e68f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch_lightning/trainer/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1193,7 +1193,7 @@ def test(
# attempt to load weights from a spawn
path = os.path.join(self.default_root_dir, '__temp_weight_ddp_end.ckpt')
test_model = self.model
if os.path.exists(path):
if os.path.exists(path) and self.on_colab_kaggle:
test_model = self.load_spawn_weights(self.model)

self.fit(test_model)
Expand Down

0 comments on commit 04e68f0

Please sign in to comment.