Skip to content

[executorch][native] Record dynamic-shape linears as chained bundled samples - #24549

Open
pytorchbot wants to merge 1 commit into
gh/digantdesai/200/origfrom
gh/digantdesai/201/orig
Open

pytorchbot wants to merge 1 commit into
gh/digantdesai/200/origfrom
gh/digantdesai/201/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: #24405 by @digantdesai
^ 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/digantdesai/201/base
ghstack PR head: https://github.com/pytorch/executorch/tree/gh/digantdesai/201/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/gh/digantdesai/200/orig
Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/digantdesai/201/orig

@diff-train-skip-merge

…samples

Pull Request resolved: #24405

Engines resize dynamic inputs between inferences, so the op samples now cover a shape changing mid-run. A case built with `chain` is exported with its `Dim`s and recorded as one sample of four calls. Each `Dim` starts mid-range, where export traces it, visits both bounds and returns, every other `Dim` in the opposite order. The harness already runs a sample's calls in order on one executable from one context, resizing inputs between them, so only its header comment changes.

The new linear cases are the XNNPACK delegate's dynamic linear tests, each also followed by a ReLU: one and two batch dims, one `Dim` on two dims or two inputs, and sequential and parallel linears, with batch dims down to 1, which tracing mid-range keeps export from specializing. The cases every quantization scheme fits take 256 input features over up to 64 tokens: `dynamic_tokens` in 2-D and, with a static batch of one as in an LLM, in 3-D, two batch dims sharing one `Dim` of up to 16, and the sequential and parallel linears.

Authored with Claude Code.

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

**NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D128770754/)!
ghstack-source-id: 463657750
@pytorch-bot

pytorch-bot Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ 1 New Failure, 21 Pending

As of commit 3016b89 with merge base 0f8e096 (image):

NEW FAILURE - The following job has failed:

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 Nov 3, 2026

This branch was successfully deployed

1 active deployment
cadence — 3016b893 Deployed Nov 3, 2026 by pytorchbot via hifi-op-test / hifi4 #36380
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