Replies: 1 comment 1 reply
-
Not sure myself, I will let @carmocca and @Borda deliver the official answer :) rank_zero_warn: simple to use, when we know for sure it will print only once I believe we used to have this extension https://pypi.org/project/pyDeprecate/ |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
What's the recommendation for how the project should track these?
In some parts of the codebase, we use
rank_zero_warn
/rank_zero_deprecation
In other parts of the codebase we use the warning cache
https://github.com/PyTorchLightning/pytorch-lightning/blob/master/pytorch_lightning/utilities/warnings.py
Why do we have both? When should we use one over another?
And for deprecated functions or classes, should we use a decorator for them? https://pypi.org/project/Deprecated/
cc @Borda @awaelchli @carmocca @tchaton @edward-io
Beta Was this translation helpful? Give feedback.
All reactions