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

baeseongsu picture baeseongsu  路  3Comments

Vichoko picture Vichoko  路  3Comments

polars05 picture polars05  路  3Comments

iakremnev picture iakremnev  路  3Comments

monney picture monney  路  3Comments