-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[PyTorch] Devirtualize TensorImpl::has_storage #51049
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
This diff makes it OK to query has_storage() on all TensorImpls. I added debug assertions that storage_ is indeed never set on them, which is required for this to be correct. Differential Revision: [D26008498](https://our.internmc.facebook.com/intern/diff/D26008498/) [ghstack-poisoned]
💊 CI failures summary and remediationsAs of commit 306e9c3 (more details on the Dr. CI page):
This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions to the (internal) Dr. CI Users group. |
This diff makes it OK to query has_storage() on all TensorImpls. I added debug assertions that storage_ is indeed never set on them, which is required for this to be correct. Differential Revision: [D26008498](https://our.internmc.facebook.com/intern/diff/D26008498/) [ghstack-poisoned]
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, for one, vote for just straight deletion, but this is OK too.
@ezyang is straight deletion an option? That would certainly leave things in a much simpler state, but do existing callsites all vanish cleanly? |
I think callers can just call |
This diff makes it OK to query has_storage() on all TensorImpls. I added debug assertions that storage_ is indeed never set on them, which is required for this to be correct. Differential Revision: [D26008498](https://our.internmc.facebook.com/intern/diff/D26008498/) [ghstack-poisoned]
This diff makes it OK to query has_storage() on all TensorImpls. I added debug assertions that storage_ is indeed never set on them, which is required for this to be correct. Differential Revision: [D26008498](https://our.internmc.facebook.com/intern/diff/D26008498/) [ghstack-poisoned]
Codecov Report
@@ Coverage Diff @@
## gh/swolchok/86/base #51049 +/- ##
====================================================
Coverage 80.86% 80.86%
====================================================
Files 1938 1938
Lines 211184 211176 -8
====================================================
+ Hits 170764 170766 +2
+ Misses 40420 40410 -10 |
This pull request has been merged in 6c24296. |
Stack from ghstack:
This diff makes it OK to query has_storage() on all TensorImpls. I added debug assertions that storage_ is indeed never set on them, which is required for this to be correct.
Differential Revision: D26008498