Skip to content

[inductor] Freeze before persisting strides in view and constraint lowerings - #200992

Draft
eellison wants to merge 13 commits into
gh/eellison/1124/basefrom
gh/eellison/1124/head
Draft

eellison wants to merge 13 commits into
gh/eellison/1124/basefrom
gh/eellison/1124/head

Conversation

@eellison

@eellison eellison commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

AI-generated description (unreviewed)

  • slice_/select with unbacked indices baked the input's provisional
    strides into the view; comprehensive padding then changed them, so
    sin(x).select(0, i.item()) on a [16, 1030] CUDA tensor was wrong in every
    element. They now freeze the storage first.
  • is_aligned_realized_tensor: move [inductor] Fix "Input tensor must have contiguous last dimension" crash in SDPA (#202297) #202297's FlexibleLayout check before
    maybe_get_stride() so it is strict-safe.
  • try_match_insignificant_strides freezes before its early return;
    realize-to-strides in graph.py calls require_stride_order unconditionally
    (behavior-identical).
  • Hint migrations: bucketize helpers, maxpool backward, resize.

Test Plan (strict on):

python test/inductor/test_layout_freezing.py  # select/slice tests fail on main
python test/inductor/test_unbacked_symints.py
python test/inductor/test_padding.py
python test/inductor/test_fused_attention.py

Authored with Claude Code.

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

✅ You can merge normally! (1 Unrelated Failure)

As of commit f9d9737 with merge base 4a03eed (image):

FLAKY - The following job failed but was likely due to flakiness present on trunk:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot

pytorch-bot Bot commented Oct 14, 2026

Copy link
Copy Markdown

This PR needs a release notes: label

If your changes are user facing and intended to be a part of release notes, please use a label starting with release notes:.

If not, please add the topic: not user facing label.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "topic: not user facing"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
@eellison
eellison requested a review from jansel December 2, 2026 10:02

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant