mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-10-29 13:30:57 +08:00
workers warning not on windows (#1433)
This commit is contained in:
1 parent
17f58d2e11
commit
2dec93f588
1 file changed
+2
-1
@@ -386,7 +386,8 @@ class TrainerTrainLoopMixin(ABC):
|
||||
self.run_training_teardown()
|
||||
|
||||
except KeyboardInterrupt:
|
||||
log.info('Detected KeyboardInterrupt, attempting graceful shutdown...')
|
||||
if self.proc_rank == 0:
|
||||
log.info('Detected KeyboardInterrupt, attempting graceful shutdown...')
|
||||
self.interrupted = True
|
||||
self.run_training_teardown()
|
||||
|
||||
|
||||
Reference in new issue
Block a user