We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a6838d commit 784a053Copy full SHA for 784a053
pytorch_lightning/trainer/callback_config.py
@@ -23,8 +23,11 @@ def configure_checkpoint_callback(self):
23
if self.checkpoint_callback is True:
24
# init a default one
25
if self.logger is not None:
26
+ save_dir = (getattr(self.logger, 'save_dir', None) or
27
+ getattr(self.logger, '_save_dir', None) or
28
+ self.default_save_path)
29
ckpt_path = os.path.join(
- self.default_save_path,
30
+ save_dir,
31
self.logger.name,
32
f'version_{self.logger.version}',
33
"checkpoints"
0 commit comments