Skip to content

Add partitioner, preprocess, and default passes (#21442) - #21442

Merged
meta-codesync[bot] merged 1 commit into
pytorch:mainfrom
metascroy:export-D111753291
Aug 13, 2026
Merged

Add partitioner, preprocess, and default passes (#21442)#21442
meta-codesync[bot] merged 1 commit into
pytorch:mainfrom
metascroy:export-D111753291

Conversation

@metascroy

@metascroy metascroy commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Summary:

NativePartitioner claims core ATen ops plus a small non-core opt-in set
(matmul/linear/addmm/sdpa) and preserves them via ops_to_not_decompose.
NativeBackend.preprocess serializes the delegated subgraph and ships constants
through the NamedDataStore by fqn. get_default_passes() runs CSE, view_copy
collapsing, and reinplace as pre-lowering transform passes.

Reviewed By: digantdesai

Differential Revision: D111753291

@pytorch-bot

pytorch-bot Bot commented Jul 28, 2026

Copy link
Copy Markdown

🔗 Helpful Links

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

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

✅ No Failures

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

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 Jul 28, 2026
@meta-codesync

meta-codesync Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

@metascroy has exported this pull request. If you are a Meta employee, you can view the originating Diff in D111753291.

@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.

@meta-codesync meta-codesync Bot changed the title Add partitioner, preprocess, and default passes Add partitioner, preprocess, and default passes (#21442) Jul 28, 2026
metascroy added a commit to metascroy/executorch that referenced this pull request Jul 28, 2026
Summary:

NativePartitioner claims core ATen ops plus a small non-core opt-in set
(matmul/linear/addmm/sdpa) and preserves them via ops_to_not_decompose.
NativeBackend.preprocess serializes the delegated subgraph and ships constants
through the NamedDataStore by fqn. get_default_passes() runs CSE, view_copy
collapsing, and reinplace as pre-lowering transform passes.

Differential Revision: D111753291
@metascroy
metascroy force-pushed the export-D111753291 branch from 0c3b82d to 19b3d90 Compare July 28, 2026 20:54
metascroy added a commit to metascroy/executorch that referenced this pull request Jul 28, 2026
Summary:

NativePartitioner claims core ATen ops plus a small non-core opt-in set
(matmul/linear/addmm/sdpa) and preserves them via ops_to_not_decompose.
NativeBackend.preprocess serializes the delegated subgraph and ships constants
through the NamedDataStore by fqn. get_default_passes() runs CSE, view_copy
collapsing, and reinplace as pre-lowering transform passes.

Differential Revision: D111753291
@metascroy
metascroy force-pushed the export-D111753291 branch from 19b3d90 to 78c0c8d Compare July 28, 2026 20:55

@digantdesai digantdesai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review automatically exported from Phabricator review in Meta.

Summary:

NativePartitioner claims core ATen ops plus a small non-core opt-in set
(matmul/linear/addmm/sdpa) and preserves them via ops_to_not_decompose.
NativeBackend.preprocess serializes the delegated subgraph and ships constants
through the NamedDataStore by fqn. get_default_passes() runs CSE, view_copy
collapsing, and reinplace as pre-lowering transform passes.

Reviewed By: digantdesai

Differential Revision: D111753291
@meta-codesync
meta-codesync Bot merged commit cd0f048 into pytorch:main Aug 13, 2026
185 of 186 checks passed
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. meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants