Skip to content

Commit

Permalink
fix on_train_end not being executed in OOM cases
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianIsensee committed May 23, 2024
1 parent e0b33a6 commit e597296
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def run_training(self):
super().run_training()
except RuntimeError:
self.crashed_with_runtime_error = True
self.on_train_end()

def on_train_end(self):
super().on_train_end()
Expand Down

0 comments on commit e597296

Please sign in to comment.