-
Notifications
You must be signed in to change notification settings - Fork 411
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
deprecate _update_called
#2141
deprecate _update_called
#2141
Conversation
Here are the lines that should be updated on lightning side: |
Thank you for taking care of this. With Lightning-AI/pytorch-lightning#18714 Lightning 2.1 will call the public method. Sorry that it was calling the protected API 😅 What is torchmetrics' policy around supporting different lightning versions? Could one use a newer torchmetrics version with an older lightning version? If yes, probably the change here would have to wait otherwise it would break. Anyway, great work on sorting it out for the future! Thanks |
@awaelchli I do not think we have an official policy regarding lightning, only torch where we aim for new releases of torchmetrics to be compatible with up to 2 year old releases of torch. |
As we are the same group, we try to support as large as we can without too much overhead, but said so, we do not need to be more generous than lightning itself meaning we are actively maintaining 1.9.x and 2.0+ even here we have set range:
also addressed in #2129 So, to be clear, this would be a breaking change such that users with TM 1.3+ can't use lighting bellow 2.1, correct? |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #2141 +/- ##
======================================
Coverage 87% 87%
======================================
Files 293 293
Lines 16396 16397 +1
======================================
+ Hits 14252 14253 +1
Misses 2144 2144 |
What does this PR do?
Removes deprecated
Metric._update_called
in favor ofMetric.update_called
.Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃
📚 Documentation preview 📚: https://torchmetrics--2141.org.readthedocs.build/en/2141/