-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calling module.log(...) within a callback fails #3813
Comments
@ananthsub I just tried on master and cannot reproduce (I think it was solved yesterday, as I could reproduce 2 days ago). |
@SkafteNicki The issue was created by @ananthsub based on a question/issue I initially raised in the slack. I'll try to see if the bug is now resolved on master for me (it was still present as of yesterday afternoon) and I'll update you here as soon as I can. Edit: @SkafteNicki The issue persists on my end, after having just pulled the master. I'll try to write a test today that can reliably reproduce this behavior, and I'll open a draft PR and link it here once I do. |
Hey @nathanpainchaud, Did you manage to Best regards, |
@tchaton Any updates on whether this is a feature that's planned to be supported, or on the contrary it's been abandoned? I'm only asking this question because the issue has been labelled priority for a while, but every PR referring to it have been closed without getting merged 😆 |
Yes! thats been worked on these weeks. Starting to be merged now (#4439) |
I still have problems logging my validation metrics using pl_module.log() in the on_validation_end() hook. Any thoughts? |
🐛 Bug
Calling pl_module.log(...) within a Callback fails, even though this is recommended by the documentation here: https://pytorch-lightning.readthedocs.io/en/latest/loggers.html#logging-from-a-callback
Error
cc @nathanpainchaud
This is happening on master
Expected behavior
We can log from callbacks using the lightning module
Environment
Happening on PyTorch Lightning master
The text was updated successfully, but these errors were encountered: