Skip to content

Commit b32f6d6

Browse files
committed
Fixes #2455
1 parent 0697dd3 commit b32f6d6

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

pytorch_lightning/callbacks/early_stopping.py

+4
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@ def _run_early_stopping_check(self, trainer, pl_module):
148148
if self.wait_count >= self.patience:
149149
self.stopped_epoch = trainer.current_epoch
150150
trainer.should_stop = True
151+
print('-' * 100)
152+
print('RUNNING EARLY STOP CHECK', trainer.global_rank)
153+
print('stop:', trainer.should_stop)
154+
print('-' * 100)
151155

152156
def on_train_end(self, trainer, pl_module):
153157
if self.stopped_epoch > 0 and self.verbose > 0:

pytorch_lightning/trainer/training_loop.py

+3
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,9 @@ def train(self):
389389
f' ({self.min_epochs}) or minimum steps ({self.min_steps}) has'
390390
' not been met. Training will continue...')
391391

392+
print('-' * 100)
393+
print('SHUTTING DOWN', self.global_rank)
394+
print('-' * 100)
392395
self.run_training_teardown()
393396

394397
except KeyboardInterrupt:

0 commit comments

Comments
 (0)