Skip to content

Conversation

Calling this first minimizes overhead for plain old ints, making cheap things cheap.

[ghstack-poisoned]
Copy link

pytorch-bot bot commented Aug 28, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/161692

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 7968432 with merge base 2b8a839 (image):
💚 Looks good so far! There are no failures yet. 💚

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

This was referenced Aug 28, 2025
Calling this first minimizes overhead for plain old ints, making cheap things cheap.

[ghstack-poisoned]
@swolchok swolchok added the topic: not user facing topic category label Sep 2, 2025
@swolchok swolchok requested a review from albanD September 2, 2025 19:56
pytorchmergebot pushed a commit that referenced this pull request Sep 9, 2025
Optimize for common case and remove a pair of refcount operations (see new comments.)

Pull Request resolved: #162220
Approved by: https://github.com/jansel, https://github.com/williamwen42
ghstack dependencies: #161591, #161595, #161633, #161634, #161692, #162219
pytorchmergebot pushed a commit that referenced this pull request Sep 10, 2025
…2218)

It returns a const reference to a vector.

Pull Request resolved: #162218
Approved by: https://github.com/Skylion007
ghstack dependencies: #161591, #161595, #161633, #161634, #161692, #162219, #162220
pytorchmergebot pushed a commit that referenced this pull request Sep 11, 2025
These seem to have been costing us 5-10 usec per detach (out of ~~95 usec total).  If they need to ship let's talk about requirements and how we can make this more efficient given that we would prefer if an entire DTensor op could finish in 10 usec.

Differential Revision: [D81530106](https://our.internmc.facebook.com/intern/diff/D81530106)
Pull Request resolved: #161596
Approved by: https://github.com/ezyang, https://github.com/Skylion007
ghstack dependencies: #161591, #161595, #161633, #161634, #161692, #162219, #162220, #162218
pytorchmergebot pushed a commit that referenced this pull request Sep 11, 2025
We control DTensor, so we can just guarantee there isn't a programming error with __torch_dispatch__. (The guard is already less-than-perfect; see the note that the deleted comment refers to.)
Pull Request resolved: #162337
Approved by: https://github.com/Skylion007
ghstack dependencies: #161591, #161595, #161633, #161634, #161692, #162219, #162220, #162218, #161596
markc-614 pushed a commit to markc-614/pytorch that referenced this pull request Sep 17, 2025
Calling this first minimizes overhead for plain old ints, making cheap things cheap.

Differential Revision: [D81530098](https://our.internmc.facebook.com/intern/diff/D81530098)
Pull Request resolved: pytorch#161692
Approved by: https://github.com/ezyang, https://github.com/Skylion007
ghstack dependencies: pytorch#161591, pytorch#161595, pytorch#161633, pytorch#161634
markc-614 pushed a commit to markc-614/pytorch that referenced this pull request Sep 17, 2025
markc-614 pushed a commit to markc-614/pytorch that referenced this pull request Sep 17, 2025
Optimize for common case and remove a pair of refcount operations (see new comments.)

Pull Request resolved: pytorch#162220
Approved by: https://github.com/jansel, https://github.com/williamwen42
ghstack dependencies: pytorch#161591, pytorch#161595, pytorch#161633, pytorch#161634, pytorch#161692, pytorch#162219
markc-614 pushed a commit to markc-614/pytorch that referenced this pull request Sep 17, 2025
markc-614 pushed a commit to markc-614/pytorch that referenced this pull request Sep 17, 2025
These seem to have been costing us 5-10 usec per detach (out of ~~95 usec total).  If they need to ship let's talk about requirements and how we can make this more efficient given that we would prefer if an entire DTensor op could finish in 10 usec.

Differential Revision: [D81530106](https://our.internmc.facebook.com/intern/diff/D81530106)
Pull Request resolved: pytorch#161596
Approved by: https://github.com/ezyang, https://github.com/Skylion007
ghstack dependencies: pytorch#161591, pytorch#161595, pytorch#161633, pytorch#161634, pytorch#161692, pytorch#162219, pytorch#162220, pytorch#162218
markc-614 pushed a commit to markc-614/pytorch that referenced this pull request Sep 17, 2025
…162337)

We control DTensor, so we can just guarantee there isn't a programming error with __torch_dispatch__. (The guard is already less-than-perfect; see the note that the deleted comment refers to.)
Pull Request resolved: pytorch#162337
Approved by: https://github.com/Skylion007
ghstack dependencies: pytorch#161591, pytorch#161595, pytorch#161633, pytorch#161634, pytorch#161692, pytorch#162219, pytorch#162220, pytorch#162218, pytorch#161596
mansiag05 pushed a commit to mansiag05/pytorch that referenced this pull request Sep 22, 2025
Calling this first minimizes overhead for plain old ints, making cheap things cheap.

Differential Revision: [D81530098](https://our.internmc.facebook.com/intern/diff/D81530098)
Pull Request resolved: pytorch#161692
Approved by: https://github.com/ezyang, https://github.com/Skylion007
ghstack dependencies: pytorch#161591, pytorch#161595, pytorch#161633, pytorch#161634
mansiag05 pushed a commit to mansiag05/pytorch that referenced this pull request Sep 22, 2025
mansiag05 pushed a commit to mansiag05/pytorch that referenced this pull request Sep 22, 2025
Optimize for common case and remove a pair of refcount operations (see new comments.)

Pull Request resolved: pytorch#162220
Approved by: https://github.com/jansel, https://github.com/williamwen42
ghstack dependencies: pytorch#161591, pytorch#161595, pytorch#161633, pytorch#161634, pytorch#161692, pytorch#162219
mansiag05 pushed a commit to mansiag05/pytorch that referenced this pull request Sep 22, 2025
mansiag05 pushed a commit to mansiag05/pytorch that referenced this pull request Sep 22, 2025
These seem to have been costing us 5-10 usec per detach (out of ~~95 usec total).  If they need to ship let's talk about requirements and how we can make this more efficient given that we would prefer if an entire DTensor op could finish in 10 usec.

Differential Revision: [D81530106](https://our.internmc.facebook.com/intern/diff/D81530106)
Pull Request resolved: pytorch#161596
Approved by: https://github.com/ezyang, https://github.com/Skylion007
ghstack dependencies: pytorch#161591, pytorch#161595, pytorch#161633, pytorch#161634, pytorch#161692, pytorch#162219, pytorch#162220, pytorch#162218
mansiag05 pushed a commit to mansiag05/pytorch that referenced this pull request Sep 22, 2025
…162337)

We control DTensor, so we can just guarantee there isn't a programming error with __torch_dispatch__. (The guard is already less-than-perfect; see the note that the deleted comment refers to.)
Pull Request resolved: pytorch#162337
Approved by: https://github.com/Skylion007
ghstack dependencies: pytorch#161591, pytorch#161595, pytorch#161633, pytorch#161634, pytorch#161692, pytorch#162219, pytorch#162220, pytorch#162218, pytorch#161596
cleonard530 pushed a commit to cleonard530/pytorch that referenced this pull request Sep 22, 2025
Calling this first minimizes overhead for plain old ints, making cheap things cheap.

Differential Revision: [D81530098](https://our.internmc.facebook.com/intern/diff/D81530098)
Pull Request resolved: pytorch#161692
Approved by: https://github.com/ezyang, https://github.com/Skylion007
ghstack dependencies: pytorch#161591, pytorch#161595, pytorch#161633, pytorch#161634
cleonard530 pushed a commit to cleonard530/pytorch that referenced this pull request Sep 22, 2025
cleonard530 pushed a commit to cleonard530/pytorch that referenced this pull request Sep 22, 2025
Optimize for common case and remove a pair of refcount operations (see new comments.)

Pull Request resolved: pytorch#162220
Approved by: https://github.com/jansel, https://github.com/williamwen42
ghstack dependencies: pytorch#161591, pytorch#161595, pytorch#161633, pytorch#161634, pytorch#161692, pytorch#162219
cleonard530 pushed a commit to cleonard530/pytorch that referenced this pull request Sep 22, 2025
cleonard530 pushed a commit to cleonard530/pytorch that referenced this pull request Sep 22, 2025
These seem to have been costing us 5-10 usec per detach (out of ~~95 usec total).  If they need to ship let's talk about requirements and how we can make this more efficient given that we would prefer if an entire DTensor op could finish in 10 usec.

Differential Revision: [D81530106](https://our.internmc.facebook.com/intern/diff/D81530106)
Pull Request resolved: pytorch#161596
Approved by: https://github.com/ezyang, https://github.com/Skylion007
ghstack dependencies: pytorch#161591, pytorch#161595, pytorch#161633, pytorch#161634, pytorch#161692, pytorch#162219, pytorch#162220, pytorch#162218
cleonard530 pushed a commit to cleonard530/pytorch that referenced this pull request Sep 22, 2025
…162337)

We control DTensor, so we can just guarantee there isn't a programming error with __torch_dispatch__. (The guard is already less-than-perfect; see the note that the deleted comment refers to.)
Pull Request resolved: pytorch#162337
Approved by: https://github.com/Skylion007
ghstack dependencies: pytorch#161591, pytorch#161595, pytorch#161633, pytorch#161634, pytorch#161692, pytorch#162219, pytorch#162220, pytorch#162218, pytorch#161596
dsashidh pushed a commit to dsashidh/pytorch that referenced this pull request Sep 26, 2025
Calling this first minimizes overhead for plain old ints, making cheap things cheap.

Differential Revision: [D81530098](https://our.internmc.facebook.com/intern/diff/D81530098)
Pull Request resolved: pytorch#161692
Approved by: https://github.com/ezyang, https://github.com/Skylion007
ghstack dependencies: pytorch#161591, pytorch#161595, pytorch#161633, pytorch#161634
dsashidh pushed a commit to dsashidh/pytorch that referenced this pull request Sep 26, 2025
dsashidh pushed a commit to dsashidh/pytorch that referenced this pull request Sep 26, 2025
Optimize for common case and remove a pair of refcount operations (see new comments.)

Pull Request resolved: pytorch#162220
Approved by: https://github.com/jansel, https://github.com/williamwen42
ghstack dependencies: pytorch#161591, pytorch#161595, pytorch#161633, pytorch#161634, pytorch#161692, pytorch#162219
dsashidh pushed a commit to dsashidh/pytorch that referenced this pull request Sep 26, 2025
dsashidh pushed a commit to dsashidh/pytorch that referenced this pull request Sep 26, 2025
These seem to have been costing us 5-10 usec per detach (out of ~~95 usec total).  If they need to ship let's talk about requirements and how we can make this more efficient given that we would prefer if an entire DTensor op could finish in 10 usec.

Differential Revision: [D81530106](https://our.internmc.facebook.com/intern/diff/D81530106)
Pull Request resolved: pytorch#161596
Approved by: https://github.com/ezyang, https://github.com/Skylion007
ghstack dependencies: pytorch#161591, pytorch#161595, pytorch#161633, pytorch#161634, pytorch#161692, pytorch#162219, pytorch#162220, pytorch#162218
dsashidh pushed a commit to dsashidh/pytorch that referenced this pull request Sep 26, 2025
…162337)

We control DTensor, so we can just guarantee there isn't a programming error with __torch_dispatch__. (The guard is already less-than-perfect; see the note that the deleted comment refers to.)
Pull Request resolved: pytorch#162337
Approved by: https://github.com/Skylion007
ghstack dependencies: pytorch#161591, pytorch#161595, pytorch#161633, pytorch#161634, pytorch#161692, pytorch#162219, pytorch#162220, pytorch#162218, pytorch#161596
@github-actions github-actions bot deleted the gh/swolchok/820/head branch October 9, 2025 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request Merged topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants