-
Notifications
You must be signed in to change notification settings - Fork 25.7k
gen ExclusivelyOwned in structured kernels #59827
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
Differential Revision: [D28965922](https://our.internmc.facebook.com/intern/diff/D28965922/) [ghstack-poisoned]
💊 CI failures summary and remediationsAs of commit eeb7ed5 (more details on the Dr. CI page and at hud.pytorch.org/pr/59827):
🚧 1 fixed upstream failure:These were probably caused by upstream breakages that were already fixed.
Please rebase on the
|
Differential Revision: [D28965922](https://our.internmc.facebook.com/intern/diff/D28965922/) ghstack-source-id: 131122290 Pull Request resolved: #59827
Differential Revision: [D28965922](https://our.internmc.facebook.com/intern/diff/D28965922/) [ghstack-poisoned]
Differential Revision: [D28965922](https://our.internmc.facebook.com/intern/diff/D28965922/) [ghstack-poisoned]
Differential Revision: [D28965922](https://our.internmc.facebook.com/intern/diff/D28965922/) [ghstack-poisoned]
|
Could you post the before and after generated code? |
|
It doesn't feel like, as is, there is any benefit to ExclusivelyOwned here, yet. Is that true? |
Differential Revision: [D28965922](https://our.internmc.facebook.com/intern/diff/D28965922/) [ghstack-poisoned]
It should save us a refcount decrement for the functional operators. |
Correction, it should save us a ~Tensor() call, which would have to do a load and branch to check if the TensorImpl was UndefinedTensorImpl. It would always ffind that to be the case and thus wouldn't do a refcount decrement anyway, though. I put pastes with the before/after RegisterCPU.cpp on Phabricator. |
Differential Revision: [D28965922](https://our.internmc.facebook.com/intern/diff/D28965922/) [ghstack-poisoned]
Pull Request resolved: #59827 ghstack-source-id: 131793841 Differential Revision: [D28965922](https://our.internmc.facebook.com/intern/diff/D28965922/)
Differential Revision: [D28965922](https://our.internmc.facebook.com/intern/diff/D28965922/) [ghstack-poisoned]
|
This pull request has been merged in a5c5b56. |
Stack from ghstack:
Differential Revision: D28965922