-
Notifications
You must be signed in to change notification settings - Fork 25.7k
[PT-D] Made _get_registry return None if no APIs applied
#113654
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
Conversation
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/113654
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 820b955 with merge base 6ed20af ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
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.
LGTM
I prefer to not modify the module if it does not have any of our APIs applied. The side effect of inserting a registry on the module when calling a getter is non-intuitive to me. [ghstack-poisoned]
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
This helps debug, e.g. when there is an unsupported op. Pull Request resolved: #113903 Approved by: https://github.com/wanchaol ghstack dependencies: #113654
Public APIs like `from_local` and `distribute_tensor` name the argument as `placements`, not `shard_spec` anymore. This was a direct find and replace. Pull Request resolved: #113917 Approved by: https://github.com/wanchaol ghstack dependencies: #113654, #113903
Stack from ghstack (oldest at bottom):
contractto allowSequence[nn.Module]#112625_get_registryreturnNoneif no APIs applied #113654I prefer to not modify the module if it does not have any of our APIs applied. The side effect of inserting a registry on the module when calling a getter is non-intuitive to me.