Why is 'log' keyword in the return parameter of training_step of LightningModule is not working? #13115
-
I am seeing the following message in the Tensorboard: I use the following code
I do the same in validation_epoch_end() as well. Is this functionality of logging through the 'log' keyword not supported anymore? Should we log explicitly using self.log() or something similar? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@kochark1 No, it isn't supported since 1.0.0 (#3681), and yes, you need to use |
Beta Was this translation helpful? Give feedback.
-
saved my day... |
Beta Was this translation helpful? Give feedback.
@kochark1 No, it isn't supported since 1.0.0 (#3681), and yes, you need to use
self.log(...)
. See details here: https://pytorch-lightning.readthedocs.io/en/stable/extensions/logging.html