Skip to content

Commit

Permalink
Fixes #2455
Browse files Browse the repository at this point in the history
  • Loading branch information
williamFalcon committed Jul 2, 2020
1 parent 77c5daa commit 9874b5e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pytorch_lightning/callbacks/early_stopping.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ def on_validation_end(self, trainer, pl_module):
self._run_early_stopping_check(trainer, pl_module)

def _run_early_stopping_check(self, trainer, pl_module):
print(f'{trainer.global_rank}' * 100)
logs = trainer.callback_metrics
if not self._validate_condition_metric(logs):
return # short circuit if metric not present
Expand Down Expand Up @@ -161,8 +160,6 @@ def _run_early_stopping_check(self, trainer, pl_module):
self.stopped_epoch = trainer.current_epoch
trainer.should_stop = True

print(f'{trainer.global_rank}' * 100)

def on_train_end(self, trainer, pl_module):
if self.stopped_epoch > 0 and self.verbose > 0:
rank_zero_warn('Displayed epoch numbers by `EarlyStopping` start from "1" until v0.6.x,'
Expand Down

0 comments on commit 9874b5e

Please sign in to comment.