Pytorch-lightning: Access the logging directory through LightningModule or Trainer

Created on 26 Jun 2020  路  3Comments  路  Source: PyTorchLightning/pytorch-lightning

Is there a way to access the current logging directory (e.g., lightning_logs/version_x)? I've searched the documentation and the source code but haven't found a solution yet.

I want to save some intermediate raw tensors to that directory.

Thanks,
David

question

Most helpful comment

For tensorboard I think you can use self.logger.log_dir, not sure about others. I think this property should be present for all the available loggers if possible.

All 3 comments

Hi! thanks for your contribution!, great first issue!

For tensorboard I think you can use self.logger.log_dir, not sure about others. I think this property should be present for all the available loggers if possible.

Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BraveDistribution picture BraveDistribution  路  31Comments

suvojit-0x55aa picture suvojit-0x55aa  路  29Comments

Anjum48 picture Anjum48  路  28Comments

lorenzoFabbri picture lorenzoFabbri  路  34Comments

dschaehi picture dschaehi  路  31Comments