[ET-VK] Support multiple UniformParamsBuffer#2348
Closed
junpi3 wants to merge 1 commit intogh/jorgep31415/21/basefrom
Closed
[ET-VK] Support multiple UniformParamsBuffer#2348junpi3 wants to merge 1 commit intogh/jorgep31415/21/basefrom
junpi3 wants to merge 1 commit intogh/jorgep31415/21/basefrom
Conversation
Before: Each node contains a `UniformParamsBuffer`. After: Each node contains a `std::vector<std::shared_ptr<UniformParamsBuffer>>`. In follow up changes, we will break up parameters to be passed via multiple UniformParamsBuffer, since 1. some are tensor-specific (e.g. image extents) and 2. others are operator-specific (e.g. alpha for binary ops). Hence, we need **`std::vector`**. We are adding the methods for #1 in #2340. Since #1 and #2 will be owned by different objects, we need **pointers**. Since #1 is owned by `vTensor` which is non-copyable, we can't use unique_ptr so we need **`std::shared_ptr`**. Differential Revision: [D54691831](https://our.internmc.facebook.com/intern/diff/D54691831/) [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/2348
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New FailureAs of commit d3e43de with merge base 0b6add8 ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
junpi3
pushed a commit
that referenced
this pull request
Mar 11, 2024
Before: Each node contains a `UniformParamsBuffer`. After: Each node contains a `std::vector<std::shared_ptr<UniformParamsBuffer>>`. In follow up changes, we will break up parameters to be passed via multiple UniformParamsBuffer, since 1. some are tensor-specific (e.g. image extents) and 2. others are operator-specific (e.g. alpha for binary ops). Hence, we need **`std::vector`**. We are adding the methods for #1 in #2340. Since #1 and #2 will be owned by different objects, we need **pointers**. Since #1 is owned by `vTensor` which is non-copyable, we can't use unique_ptr so we need **`std::shared_ptr`**. Differential Revision: [D54691831](https://our.internmc.facebook.com/intern/diff/D54691831/) ghstack-source-id: 218195447 Pull Request resolved: #2348
Contributor
|
This pull request was exported from Phabricator. Differential Revision: D54691831 |
SS-JIA
approved these changes
Mar 11, 2024
Contributor
|
This pull request has been merged in a33fbd8. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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):
Before: Each node contains a
UniformParamsBuffer.After: Each node contains a
std::vector<std::shared_ptr<UniformParamsBuffer>>.In follow up changes, we will break up parameters to be passed via multiple UniformParamsBuffer, since
Hence, we need
std::vector.We are adding the methods for #1 in #2340. Since #1 and #2 will be owned by different objects, we need pointers. Since #1 is owned by
vTensorwhich is non-copyable, we can't use unique_ptr so we needstd::shared_ptr.Differential Revision: D54691831