-
Notifications
You must be signed in to change notification settings - Fork 758
[ET-VK][Ez] Allow ParamsBindList to append a single Binding Info
#4593
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
## Context
This diff adds some API functions to `ParamsBindList` to make it easier to use, specifically
1. Added default constructor
2. Added overload for `append` that takes only one `BufferBindInfo`
The reason for these changes is to make the following pattern easier:
```
ParamsBindList ubo;
if (kernel1) {
ubo.append(ubo1);
}
else {
ubo.append(ubo2);
}
```
This pattern was not possible before because `ubo` could not be default constructed, and `ubo1` and `ubo2` had to be wrapped in an initializer list before being passed to `append`.
Differential Revision: [D60930997](https://our.internmc.facebook.com/intern/diff/D60930997/)
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/4593
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 1e3acf1 with merge base 192d463 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
This pull request was exported from Phabricator. Differential Revision: D60930997 |
…ing Info"
## Context
This diff adds some API functions to `ParamsBindList` to make it easier to use, specifically
1. Added default constructor
2. Added overload for `append` that takes only one `BufferBindInfo`
The reason for these changes is to make the following pattern easier:
```
ParamsBindList ubo;
if (kernel1) {
ubo.append(ubo1);
}
else {
ubo.append(ubo2);
}
```
This pattern was not possible before because `ubo` could not be default constructed, and `ubo1` and `ubo2` had to be wrapped in an initializer list before being passed to `append`.
Differential Revision: [D60930997](https://our.internmc.facebook.com/intern/diff/D60930997/)
[ghstack-poisoned]
|
This pull request was exported from Phabricator. Differential Revision: D60930997 |
…ing Info"
## Context
This diff adds some API functions to `ParamsBindList` to make it easier to use, specifically
1. Added default constructor
2. Added overload for `append` that takes only one `BufferBindInfo`
The reason for these changes is to make the following pattern easier:
```
ParamsBindList ubo;
if (kernel1) {
ubo.append(ubo1);
}
else {
ubo.append(ubo2);
}
```
This pattern was not possible before because `ubo` could not be default constructed, and `ubo1` and `ubo2` had to be wrapped in an initializer list before being passed to `append`.
Differential Revision: [D60930997](https://our.internmc.facebook.com/intern/diff/D60930997/)
[ghstack-poisoned]
|
This pull request was exported from Phabricator. Differential Revision: D60930997 |
## Context
This diff adds some API functions to `ParamsBindList` to make it easier to use, specifically
1. Added default constructor
2. Added overload for `append` that takes only one `BufferBindInfo`
The reason for these changes is to make the following pattern easier:
```
ParamsBindList ubo;
if (kernel1) {
ubo.append(ubo1);
}
else {
ubo.append(ubo2);
}
```
This pattern was not possible before because `ubo` could not be default constructed, and `ubo1` and `ubo2` had to be wrapped in an initializer list before being passed to `append`.
Differential Revision: D60930997
Pull Request resolved: #4593
---------
Co-authored-by: Stephen Jia <ssjia@meta.com>
Stack from ghstack (oldest at bottom):
ParamsBindListto append a single Binding Info #4593Context
This diff adds some API functions to
ParamsBindListto make it easier to use, specificallyappendthat takes only oneBufferBindInfoThe reason for these changes is to make the following pattern easier:
This pattern was not possible before because
ubocould not be default constructed, andubo1andubo2had to be wrapped in an initializer list before being passed toappend.Differential Revision: D60930997