Skip to content

[ET-VK] Adding push constant and ubo verison of select and slice ops to improve memory and performance. #12508

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

Merged
merged 2 commits into from
Jul 15, 2025

Conversation

pytorchbot
Copy link
Collaborator

This PR was created by the merge bot to help merge the original PR into the main branch.
ghstack PR number: #12358 by @trivedivivek
^ Please use this as the source of truth for the PR details, comments, and reviews
ghstack PR base: https://github.com/pytorch/executorch/tree/gh/trivedivivek/118/base
ghstack PR head: https://github.com/pytorch/executorch/tree/gh/trivedivivek/118/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/gh/trivedivivek/117/orig
Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/trivedivivek/118/orig
@diff-train-skip-merge

…return a default if value at index is none.

Pull Request resolved: #12357
This diff adds a new function `extract_scalar_or` to the `ComputeGraph` class, which extracts a scalar value from a `ValueRef` index. If the value at the index is `None`, it returns a default value.
ghstack-source-id: 296319453
@exported-using-ghexport

Differential Revision: [D78094858](https://our.internmc.facebook.com/intern/diff/D78094858/)
…to improve memory and performance.

Pull Request resolved: #12358

Adding push constant and ubo verison of select and slice ops to improve memory and performance.
*   Updated `transfer_buffer.yaml` and `transfer_texture.yaml` to include `UBO_PARAMS` parameter and generate variants for `select` and `slice` ops with UBO parameters.
*   Updated `transfer.glsl` to generate ubo and push constant versions of `select` and `slice` ops with UBO parameters.
ghstack-source-id: 296319454

Differential Revision: [D78095262](https://our.internmc.facebook.com/intern/diff/D78095262/)
@pytorchbot pytorchbot requested a review from SS-JIA as a code owner July 15, 2025 19:11
Copy link

pytorch-bot bot commented Jul 15, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/12508

Note: Links to docs will display an error until the docs builds have been completed.

⏳ No Failures, 82 Pending

As of commit 2d8f1f6 with merge base 46ca782 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 15, 2025
Base automatically changed from gh/trivedivivek/117/orig to main July 15, 2025 19:20
@SS-JIA SS-JIA merged commit bd530e8 into main Jul 15, 2025
94 of 95 checks passed
@SS-JIA SS-JIA deleted the gh/trivedivivek/118/orig branch July 15, 2025 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants