-
Notifications
You must be signed in to change notification settings - Fork 685
[ET-VK][ez] Handle zero-element tensors when building Vulkan graph #11984
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
## Changes As title. ## Motivation Some models may have parameter tensors which are zero-shape (i.e. no elements). In this case, trying to serialize the tensor data will result in a null pointer exception. Differential Revision: [D77281492](https://our.internmc.facebook.com/intern/diff/D77281492/) [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/11984
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit bc7ce16 with merge base ecb85ce ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
## Changes As title. ## Motivation Some models may have parameter tensors which are zero-shape (i.e. no elements). In this case, trying to serialize the tensor data will result in a null pointer exception. Differential Revision: [D77281492](https://our.internmc.facebook.com/intern/diff/D77281492/) ghstack-source-id: 292684344 Pull Request resolved: #11984
This pull request was exported from Phabricator. Differential Revision: D77281492 |
This PR needs a
|
…an graph" ## Changes As title. ## Motivation Some models may have parameter tensors which are zero-shape (i.e. no elements). In this case, trying to serialize the tensor data will result in a null pointer exception. Differential Revision: [D77281492](https://our.internmc.facebook.com/intern/diff/D77281492/) cc manuelcandales cbilgin [ghstack-poisoned]
Pull Request resolved: #11984 ## Changes As title. ## Motivation Some models may have parameter tensors which are zero-shape (i.e. no elements). In this case, trying to serialize the tensor data will result in a null pointer exception. Differential Revision: [D77281492](https://our.internmc.facebook.com/intern/diff/D77281492/) ghstack-source-id: 292698961
This pull request was exported from Phabricator. Differential Revision: D77281492 |
…an graph" ## Changes As title. ## Motivation Some models may have parameter tensors which are zero-shape (i.e. no elements). In this case, trying to serialize the tensor data will result in a null pointer exception. Differential Revision: [D77281492](https://our.internmc.facebook.com/intern/diff/D77281492/) cc manuelcandales cbilgin [ghstack-poisoned]
Pull Request resolved: #11984 ## Changes As title. ## Motivation Some models may have parameter tensors which are zero-shape (i.e. no elements). In this case, trying to serialize the tensor data will result in a null pointer exception. ghstack-source-id: 292715260 Differential Revision: [D77281492](https://our.internmc.facebook.com/intern/diff/D77281492/)
This pull request was exported from Phabricator. Differential Revision: D77281492 |
…an graph" ## Changes As title. ## Motivation Some models may have parameter tensors which are zero-shape (i.e. no elements). In this case, trying to serialize the tensor data will result in a null pointer exception. Differential Revision: [D77281492](https://our.internmc.facebook.com/intern/diff/D77281492/) cc manuelcandales cbilgin [ghstack-poisoned]
Pull Request resolved: #11984 ## Changes As title. ## Motivation Some models may have parameter tensors which are zero-shape (i.e. no elements). In this case, trying to serialize the tensor data will result in a null pointer exception. ghstack-source-id: 292864904 Differential Revision: [D77281492](https://our.internmc.facebook.com/intern/diff/D77281492/)
This pull request was exported from Phabricator. Differential Revision: D77281492 |
fa3d871
into
gh/SS-JIA/250/base
…12021) This PR was created by the merge bot to help merge the original PR into the main branch. ghstack PR number: #11984 by @SS-JIA ^ 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/SS-JIA/250/base ghstack PR head: https://github.com/pytorch/executorch/tree/gh/SS-JIA/250/head Merge bot PR base: https://github.com/pytorch/executorch/tree/gh/SS-JIA/249/orig Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/SS-JIA/250/orig @diff-train-skip-merge cc @SS-JIA @manuelcandales @cbilgin --------- Co-authored-by: Stephen Jia <ssjia@meta.com>
Stack from ghstack (oldest at bottom):
Changes
As title.
Motivation
Some models may have parameter tensors which are zero-shape (i.e. no elements). In this case, trying to serialize the tensor data will result in a null pointer exception.
Differential Revision: D77281492
cc @manuelcandales @cbilgin