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
Add rule for deprecated _register_pytree_node #44
Conversation
tests/fixtures/deprecated_symbols/checker/deprecated_register_pytree_node.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove import torch.utils._pytree._register_pytree_node as yy
, as you can only import packages, not individual functions.
fac2b00
to
3c1b8b1
Compare
@@ -0,0 +1,9 @@ | |||
from torch.utils._pytree import register_pytree_node, _register_pytree_node |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hoped it would no longer import _register_pytree_node...
(Not for this PR, but an issue for the future).
Fixes #41
Testing: