Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Ethan Harris <[email protected]>
  • Loading branch information
Borda and ethanwharris authored Jul 27, 2020
1 parent 3dee8c6 commit 4032446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch_lightning/accelerator_backends/tpu_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def tpu_train_in_process(self, tpu_core_idx: int, model: LightningModule, traine
# persist info in spawn
trainer.transfer_distrib_spawn_state_on_fit_end(model, mp_queue, results)

def __save_end_of_training_weights(self, model: LightningModule, trainer=None):
def __save_end_of_training_weights(self, model: LightningModule, trainer):
# when training ends on these platforms dump weights to get out of the main process
if trainer.on_colab_kaggle:
rank_zero_warn('cleaning up... please do not interrupt')
Expand Down

0 comments on commit 4032446

Please sign in to comment.