Skip to content

[executorch] Propagate device metadata from partitioner result onto TensorSpecs#18893

Merged
Gasoonjia merged 1 commit intomainfrom
gh/gasoonjia/135/orig
Apr 14, 2026
Merged

[executorch] Propagate device metadata from partitioner result onto TensorSpecs#18893
Gasoonjia merged 1 commit intomainfrom
gh/gasoonjia/135/orig

Conversation

@pytorchbot
Copy link
Copy Markdown
Collaborator

This PR was created by the merge bot to help merge the original PR into the main branch.
ghstack PR number: #18078 by @Gasoonjia
^ 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/gasoonjia/135/base
ghstack PR head: https://github.com/pytorch/executorch/tree/gh/gasoonjia/135/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/main
Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/gasoonjia/135/orig
Differential Revision: D95842511
@diff-train-skip-merge

… onto TensorSpecs

Pull Request resolved: #18078

Annotate the delegate's input and output tensors as specific device type

The overall pipeline is:
a. Partitioner use `compile_spec` to determine which device the partitoned blob is runing on
b. after lowered partitioned graph to backend, the new-introed propagate_device_pass will annotate the input and output tensors of delegate blob as target device with correct device index.
ghstack-source-id: 366840446
@exported-using-ghexport

Differential Revision: [D95842511](https://our.internmc.facebook.com/intern/diff/D95842511/)
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot bot commented Apr 14, 2026

🔗 Helpful Links

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

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.

@meta-cla meta-cla 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 14, 2026
@github-actions
Copy link
Copy Markdown

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.

@Gasoonjia Gasoonjia merged commit 98c4a69 into main Apr 14, 2026
156 of 161 checks passed
@Gasoonjia Gasoonjia deleted the gh/gasoonjia/135/orig branch April 14, 2026 20:59
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants