Skip to content

[ET Device Support] Propagate device info from TensorSpec into serialized Tensor#18894

Merged
Gasoonjia merged 2 commits intomainfrom
gh/gasoonjia/136/orig
Apr 14, 2026
Merged

[ET Device Support] Propagate device info from TensorSpec into serialized Tensor#18894
Gasoonjia merged 2 commits intomainfrom
gh/gasoonjia/136/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: #18079 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/136/base
ghstack PR head: https://github.com/pytorch/executorch/tree/gh/gasoonjia/136/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/gh/gasoonjia/135/orig
Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/gasoonjia/136/orig
Differential Revision: D95899706
@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/)
…ized Tensor

Pull Request resolved: #18079

Propagate device information from `TensorSpec.device` (set by `PropagateDevicePass`) to
the serialized `schema.Tensor` in the emitted PTE file, to make runtime further aware of it.
ghstack-source-id: 366850771
@exported-using-ghexport

Differential Revision: [D95899706](https://our.internmc.facebook.com/intern/diff/D95899706/)
@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/18894

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
Base automatically changed from gh/gasoonjia/135/orig to main April 14, 2026 20:59
@Gasoonjia Gasoonjia merged commit 75c677f into main Apr 14, 2026
150 of 159 checks passed
@Gasoonjia Gasoonjia deleted the gh/gasoonjia/136/orig branch April 14, 2026 21:00
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