Skip to content

Commit

Permalink
cleaned up some if statements
Browse files Browse the repository at this point in the history
  • Loading branch information
williamFalcon committed Jul 25, 2019
1 parent 7e728d9 commit 7e52f6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch_lightning/models/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -885,6 +885,6 @@ def __run_validation(self):
self.prog_bar.set_postfix(**tqdm_metrics)

# model checkpointing
if self.proc_rank == 0 and self.checkpoint_callback:
if self.proc_rank == 0 and self.checkpoint_callback is not None:
print('save callback...')
self.checkpoint_callback.on_epoch_end(epoch=self.current_epoch, logs=self.__tng_tqdm_dic)

0 comments on commit 7e52f6e

Please sign in to comment.