Skip to content

Update flat tensor ndm to account for named delegate data #10330

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

Open
wants to merge 2 commits into
base: gh/lucylq/64/base
Choose a base branch
from

Conversation

lucylq
Copy link
Contributor

@lucylq lucylq commented Apr 21, 2025

Stack from ghstack (oldest at bottom):

Currently flat_tensor ndm only accounts for tensors in get_data, get_num_keys, get_key functions.

Add support to return named_data values as well.

TODO: consolidate tensors and named_data into one structure in the flatbuffer. This will simplify all the serialization and runtime code.

Currently, we assume that a PTD file has either tensors or named_data, not both. After the consolidation, this won't be an issue.

Differential Revision: D73380805

Currently flat_tensor ndm only accounts for tensors in get_data, get_num_keys, get_key functions.

Add support to return named_data values as well.

TODO: consolidate tensors and named_data into one structure in the flatbuffer. This will simplify all the serialization and runtime code.

Currently, we assume that a PTD file has either tensors or named_data, not both. After the consolidation, this won't be an issue.

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

[ghstack-poisoned]
Copy link

pytorch-bot bot commented Apr 21, 2025

🔗 Helpful Links

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

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

❌ 5 New Failures

As of commit 75cc0e6 with merge base 334af4a (image):

NEW FAILURES - The following jobs have failed:

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 Apr 21, 2025
lucylq added a commit that referenced this pull request Apr 21, 2025
Currently flat_tensor ndm only accounts for tensors in get_data, get_num_keys, get_key functions.

Add support to return named_data values as well.

TODO: consolidate tensors and named_data into one structure in the flatbuffer. This will simplify all the serialization and runtime code.

Currently, we assume that a PTD file has either tensors or named_data, not both. After the consolidation, this won't be an issue.

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

ghstack-source-id: 279349252
Pull Request resolved: #10330
@facebook-github-bot
Copy link
Contributor

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

Currently flat_tensor ndm only accounts for tensors in get_data, get_num_keys, get_key functions.

Add support to return named_data values as well.

TODO: consolidate tensors and named_data into one structure in the flatbuffer. This will simplify all the serialization and runtime code.

Currently, we assume that a PTD file has either tensors or named_data, not both. After the consolidation, this won't be an issue.

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

[ghstack-poisoned]
lucylq added a commit that referenced this pull request Apr 23, 2025
Pull Request resolved: #10330

Currently flat_tensor ndm only accounts for tensors in get_data, get_num_keys, get_key functions.

Add support to return named_data values as well.

TODO: consolidate tensors and named_data into one structure in the flatbuffer. This will simplify all the serialization and runtime code.

Currently, we assume that a PTD file has either tensors or named_data, not both. After the consolidation, this won't be an issue.

Differential Revision: [D73380805](https://our.internmc.facebook.com/intern/diff/D73380805/)
ghstack-source-id: 279887671
@facebook-github-bot
Copy link
Contributor

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

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 topic: not user facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants