Skip to content

[ET-VK] Store unique ptr to Tensor in Value instead of inlined tensor object, to reduce Value struct size from 448 to 80 bytes. #7227

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
Dec 9, 2024

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: #7145
^ 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/17/base
ghstack PR head: https://github.com/pytorch/executorch/tree/gh/trivedivivek/17/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/gh/trivedivivek/16/orig
Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/trivedivivek/17/orig
@diff-train-skip-merge

…and ParamsBuffer.

Pull Request resolved: #7144

This diff removes unnecessary and redundant members from VulkanBuffer and ParamsBuffer.
ghstack-source-id: 256911526
@exported-using-ghexport

Differential Revision: [D66557456](https://our.internmc.facebook.com/intern/diff/D66557456/)
… object, to reduce Value struct size from 448 to 80 bytes.

Pull Request resolved: #7145

This diff aims to reduce the size of the Value struct in the Executorch Vulkan runtime by storing a unique pointer to the Tensor object instead of an inlined tensor object. This change reduces the size of the Value struct from 448 bytes to 80 bytes, which can improve performance and reduce memory usage.
ghstack-source-id: 256911524
@exported-using-ghexport

Differential Revision: [D66655991](https://our.internmc.facebook.com/intern/diff/D66655991/)
Copy link

pytorch-bot bot commented Dec 6, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit c9a5739 with merge base 63238ab (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 Dec 6, 2024
Base automatically changed from gh/trivedivivek/16/orig to main December 6, 2024 19:15
@kirklandsign kirklandsign merged commit ffc1273 into main Dec 9, 2024
40 checks passed
@kirklandsign kirklandsign deleted the gh/trivedivivek/17/orig branch December 9, 2024 06:13
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