-
Notifications
You must be signed in to change notification settings - Fork 25.5k
Minor cleanup of DeviceMesh.__eq__ #161235
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
Closed
Closed
+9
−10
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/161235
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 1451188 with merge base a85711d ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This was referenced Aug 22, 2025
This was referenced Aug 22, 2025
wconstab
approved these changes
Aug 22, 2025
This was referenced Aug 23, 2025
zpcore
approved these changes
Aug 23, 2025
fduwjj
approved these changes
Aug 23, 2025
Starting merge as part of PR stack under #161285 |
pytorchmergebot
pushed a commit
that referenced
this pull request
Aug 25, 2025
…161240) get_write_alias() call count reduction explained briefly in code comment. We don't need to check write_aliases against None in the final outs_to_return calculation because we just did that check. Pull Request resolved: #161240 Approved by: https://github.com/wconstab ghstack dependencies: #161231, #161234, #161235
pytorchmergebot
pushed a commit
that referenced
this pull request
Aug 25, 2025
…ly_alias_match (#161284) Containers are truthy iff they're non-empty. Pull Request resolved: #161284 Approved by: https://github.com/Skylion007, https://github.com/wconstab ghstack dependencies: #161231, #161234, #161235, #161240
markc-614
pushed a commit
to markc-614/pytorch
that referenced
this pull request
Sep 17, 2025
`self is other` means the same thing as `id(self) == id(other)`, but it's one operator instead of 3. Pull Request resolved: pytorch#161235 Approved by: https://github.com/wconstab, https://github.com/zpcore, https://github.com/fduwjj ghstack dependencies: pytorch#161231, pytorch#161234
markc-614
pushed a commit
to markc-614/pytorch
that referenced
this pull request
Sep 17, 2025
…ytorch#161240) get_write_alias() call count reduction explained briefly in code comment. We don't need to check write_aliases against None in the final outs_to_return calculation because we just did that check. Pull Request resolved: pytorch#161240 Approved by: https://github.com/wconstab ghstack dependencies: pytorch#161231, pytorch#161234, pytorch#161235
markc-614
pushed a commit
to markc-614/pytorch
that referenced
this pull request
Sep 17, 2025
…ly_alias_match (pytorch#161284) Containers are truthy iff they're non-empty. Pull Request resolved: pytorch#161284 Approved by: https://github.com/Skylion007, https://github.com/wconstab ghstack dependencies: pytorch#161231, pytorch#161234, pytorch#161235, pytorch#161240
markc-614
pushed a commit
to markc-614/pytorch
that referenced
this pull request
Sep 17, 2025
…#161285) Drives down the overhead of return_and_correct_storage_aliasing slightly. Hopefully you'll agree it doesn't compromise readability. Pull Request resolved: pytorch#161285 Approved by: https://github.com/wconstab ghstack dependencies: pytorch#161231, pytorch#161234, pytorch#161235, pytorch#161240, pytorch#161284
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Merged
oncall: distributed
Add this issue/PR to distributed oncall triage queue
topic: not user facing
topic category
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Stack from ghstack (oldest at bottom):
is
, not ==, to check exact type matches in _python_dispatch #161304__hash__
and__eq__
#161234self is other
means the same thing asid(self) == id(other)
, but it's one operator instead of 3.cc @H-Huang @awgu @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @pragupta