-
Notifications
You must be signed in to change notification settings - Fork 684
[ET-VK] Simplify Allocator's buffer creation methods #5014
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
1. Tensors accessible to both CPU and GPU use `StorageBuffer`. 2. Tensors accessible to GPU only use `vTensorStorage`. Since `StorageBuffer` is only used for [staging buffers](https://vulkan-tutorial.com/Vertex_buffers/Staging_buffer), i.e., buffers accessible to both CPU and GPU, `StagingBuffer` is a fitting name for (1) that decreases confusion between (1) and (2). Differential Revision: [D62049779](https://our.internmc.facebook.com/intern/diff/D62049779/) [ghstack-poisoned]
TSIA Differential Revision: [D62049777](https://our.internmc.facebook.com/intern/diff/D62049777/) [ghstack-poisoned]
There are ~4 lines of duplicated code but IMO, the distinct function names make the code much clearer. Differential Revision: [D62049778](https://our.internmc.facebook.com/intern/diff/D62049778/) [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/5014
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (2 Unrelated Failures)As of commit 5211817 with merge base ef3c53d ( BROKEN TRUNK - The following jobs failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This pull request was exported from Phabricator. Differential Revision: D62049778 |
There are ~4 lines of duplicated code but IMO, the distinct function names make the code much clearer. Differential Revision: [D62049778](https://our.internmc.facebook.com/intern/diff/D62049778/) ghstack-source-id: 240557905 Pull Request resolved: #5014
…on methods" There are ~4 lines of duplicated code but IMO, the distinct function names make the code much clearer. Differential Revision: [D62049778](https://our.internmc.facebook.com/intern/diff/D62049778/) [ghstack-poisoned]
There are ~4 lines of duplicated code but IMO, the distinct function names make the code much clearer. Differential Revision: [D62049778](https://our.internmc.facebook.com/intern/diff/D62049778/) [ghstack-poisoned]
This pull request was exported from Phabricator. Differential Revision: D62049778 |
…on methods" There are ~4 lines of duplicated code but IMO, the distinct function names make the code much clearer. Differential Revision: [D62049778](https://our.internmc.facebook.com/intern/diff/D62049778/) [ghstack-poisoned]
There are ~4 lines of duplicated code but IMO, the distinct function names make the code much clearer. Differential Revision: [D62049778](https://our.internmc.facebook.com/intern/diff/D62049778/) [ghstack-poisoned]
This pull request was exported from Phabricator. Differential Revision: D62049778 |
…on methods" There are ~4 lines of duplicated code but IMO, the distinct function names make the code much clearer. Differential Revision: [D62049778](https://our.internmc.facebook.com/intern/diff/D62049778/) [ghstack-poisoned]
There are ~4 lines of duplicated code but IMO, the distinct function names make the code much clearer. Differential Revision: [D62049778](https://our.internmc.facebook.com/intern/diff/D62049778/) [ghstack-poisoned]
This pull request was exported from Phabricator. Differential Revision: D62049778 |
…on methods" There are ~4 lines of duplicated code but IMO, the distinct function names make the code much clearer. Differential Revision: [D62049778](https://our.internmc.facebook.com/intern/diff/D62049778/) [ghstack-poisoned]
There are ~4 lines of duplicated code but IMO, the distinct function names make the code much clearer. Differential Revision: [D62049778](https://our.internmc.facebook.com/intern/diff/D62049778/) [ghstack-poisoned]
This pull request was exported from Phabricator. Differential Revision: D62049778 |
…on methods" There are ~4 lines of duplicated code but IMO, the distinct function names make the code much clearer. Differential Revision: [D62049778](https://our.internmc.facebook.com/intern/diff/D62049778/) [ghstack-poisoned]
There are ~4 lines of duplicated code but IMO, the distinct function names make the code much clearer. Differential Revision: [D62049778](https://our.internmc.facebook.com/intern/diff/D62049778/) [ghstack-poisoned]
This pull request was exported from Phabricator. Differential Revision: D62049778 |
Pull Request resolved: pytorch/executorch#5014 There are ~4 lines of duplicated code but IMO, the distinct function names make the code much clearer. ghstack-source-id: 240831449 @exported-using-ghexport Differential Revision: [D62049778](https://our.internmc.facebook.com/intern/diff/D62049778/)
Stack from ghstack (oldest at bottom):
There are ~4 lines of duplicated code but IMO, the distinct function names make the code much clearer.
Differential Revision: D62049778