Skip to content

Commit

Permalink
Use checkpoint_connector.hpc_save in SLURM (#4217)
Browse files Browse the repository at this point in the history
  • Loading branch information
EspenHa committed Oct 18, 2020
1 parent 2e9733b commit 66e58f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch_lightning/trainer/connectors/slurm_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def sig_handler(self, signum, frame): # pragma: no-cover
if self.trainer.is_global_zero:
# save weights
log.info('handling SIGUSR1')
self.trainer.hpc_save(self.trainer.weights_save_path, self.trainer.logger)
self.trainer.checkpoint_connector.hpc_save(self.trainer.weights_save_path, self.trainer.logger)

# find job id
job_id = os.environ['SLURM_JOB_ID']
Expand Down

0 comments on commit 66e58f5

Please sign in to comment.