We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17f58d2 commit 2dec93fCopy full SHA for 2dec93f
pytorch_lightning/trainer/training_loop.py
@@ -386,7 +386,8 @@ def train(self):
386
self.run_training_teardown()
387
388
except KeyboardInterrupt:
389
- log.info('Detected KeyboardInterrupt, attempting graceful shutdown...')
+ if self.proc_rank == 0:
390
+ log.info('Detected KeyboardInterrupt, attempting graceful shutdown...')
391
self.interrupted = True
392
393
0 commit comments