Self.log doesn’t work in PyTorch Lightning in custom logger #15882
Unanswered
alihejrati
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I create a custom Logger module like the one below, and when I call self.log in training_step nothing happens. only MyLogger.save method is called and I don’t get metrics.
when I set log_every_n_steps=1 in Trainer() then MyLogger.log_metrics is called and shows learning_rate instead metrics I logged in self.log_dict
my custom logger:
training function:
I get this instead log_dict content!

Beta Was this translation helpful? Give feedback.
All reactions