[ET-VK][ez] Handle zero-element tensors when building Vulkan graph#11984
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