KEMBAR78
[PT-D] Made `_get_registry` return `None` if no APIs applied by awgu · Pull Request #113654 · pytorch/pytorch · GitHub
Skip to content

Conversation

@awgu
Copy link
Collaborator

@awgu awgu commented Nov 14, 2023

Stack from ghstack (oldest at bottom):

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.

@pytorch-bot
Copy link

pytorch-bot bot commented Nov 14, 2023

🔗 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 Failures

As of commit 820b955 with merge base 6ed20af (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

Copy link
Contributor

@fegin fegin left a 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]
@awgu awgu added the ciflow/trunk Trigger trunk jobs on your pull request label Nov 14, 2023
@awgu
Copy link
Collaborator Author

awgu commented Nov 14, 2023

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your 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

Advanced Debugging
Check the merge workflow status
here

pytorchmergebot pushed a commit that referenced this pull request Nov 17, 2023
This helps debug, e.g. when there is an unsupported op.
Pull Request resolved: #113903
Approved by: https://github.com/wanchaol
ghstack dependencies: #113654
pytorchmergebot pushed a commit that referenced this pull request Nov 18, 2023
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
@facebook-github-bot facebook-github-bot deleted the gh/awgu/453/head branch November 18, 2023 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants