Skip to content

Conversation

SS-JIA
Copy link
Contributor

@SS-JIA SS-JIA commented Jun 25, 2025

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

## 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]
@pytorch-bot pytorch-bot bot added the module: vulkan Issues related to the Vulkan delegate and code under backends/vulkan/ label Jun 25, 2025
Copy link

pytorch-bot bot commented Jun 25, 2025

🔗 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 Failures

As of commit bc7ce16 with merge base ecb85ce (image):
💚 Looks good so far! There are no failures yet. 💚

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

SS-JIA added a commit that referenced this pull request Jun 25, 2025
## 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
@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 Jun 25, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D77281492

Copy link

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

…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]
SS-JIA added a commit that referenced this pull request Jun 25, 2025
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
@facebook-github-bot
Copy link
Contributor

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]
SS-JIA added a commit that referenced this pull request Jun 25, 2025
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/)
@facebook-github-bot
Copy link
Contributor

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]
SS-JIA added a commit that referenced this pull request Jun 26, 2025
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/)
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D77281492

@facebook-github-bot facebook-github-bot merged commit fa3d871 into gh/SS-JIA/250/base Jun 26, 2025
97 of 98 checks passed
@facebook-github-bot facebook-github-bot deleted the gh/SS-JIA/250/head branch June 26, 2025 20:06
GregoryComer pushed a commit that referenced this pull request Jun 27, 2025
…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>
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. fb-exported module: vulkan Issues related to the Vulkan delegate and code under backends/vulkan/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants