Skip to content

Commit

Permalink
Issue #657 - Call on_train_end after early stopping (#723)
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshSharma12 authored and williamFalcon committed Jan 21, 2020
1 parent eeb48ce commit 432a0bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pytorch_lightning/trainer/training_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ def train(self):
stop = should_stop and met_min_epochs
if stop:
self.main_progress_bar.close()
model.on_train_end()
return

self.main_progress_bar.close()
Expand Down

0 comments on commit 432a0bc

Please sign in to comment.