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 1a54ed6 commit fc26078
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pytorch_lightning/trainer/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,9 @@ def fit(
xmp.spawn(self.tpu_train, args=(model,), nprocs=self.tpu_cores, start_method=start_method)

# load weights if not interrupted
self.load_spawn_weights(model)
if self.on_colab_kaggle:
self.load_spawn_weights(model)

self.model = model

# ON CPU
Expand Down

0 comments on commit fc26078

Please sign in to comment.