Skip to content

[ET-VK] Using vector for storing ref_mapping_ in GraphBuilder to improve model load time and memory. #10689

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 1 commit into from
May 5, 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: #10647 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/81/base
ghstack PR head: https://github.com/pytorch/executorch/tree/gh/trivedivivek/81/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/gh/trivedivivek/80/orig
Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/trivedivivek/81/orig
@diff-train-skip-merge

@pytorchbot pytorchbot requested a review from SS-JIA as a code owner May 5, 2025 20:23
Copy link

pytorch-bot bot commented May 5, 2025

🔗 Helpful Links

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

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

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

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 May 5, 2025
Base automatically changed from gh/trivedivivek/80/orig to main May 5, 2025 20:24
…ove model load time and memory.

Pull Request resolved: #10647

This diff changes GraphBuilder class to store ref id to value mapping as vector instead of unordered map, since maximum id is known and thus vector can be sized to store the map.
ghstack-source-id: 282013578
@exported-using-ghexport

Differential Revision: [D73969916](https://our.internmc.facebook.com/intern/diff/D73969916/)
@kirklandsign kirklandsign force-pushed the gh/trivedivivek/81/orig branch from ab09362 to bb9ec6d Compare May 5, 2025 20:25
@kirklandsign kirklandsign merged commit bd63be6 into main May 5, 2025
4 of 5 checks passed
@kirklandsign kirklandsign deleted the gh/trivedivivek/81/orig branch May 5, 2025 20:25
phaiting pushed a commit that referenced this pull request May 6, 2025
…ove model load time and memory. (#10689)

Pull Request resolved: #10647

This diff changes GraphBuilder class to store ref id to value mapping as vector instead of unordered map, since maximum id is known and thus vector can be sized to store the map.
ghstack-source-id: 282013578
@exported-using-ghexport

Differential Revision: [D73969916](https://our.internmc.facebook.com/intern/diff/D73969916/)
jhelsby pushed a commit to jhelsby/executorch that referenced this pull request May 9, 2025
…ove model load time and memory. (pytorch#10689)

Pull Request resolved: pytorch#10647

This diff changes GraphBuilder class to store ref id to value mapping as vector instead of unordered map, since maximum id is known and thus vector can be sized to store the map.
ghstack-source-id: 282013578
@exported-using-ghexport

Differential Revision: [D73969916](https://our.internmc.facebook.com/intern/diff/D73969916/)
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. topic: not user facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants