Skip to content

[release/2.13] Revert "Tighten generalized scatter graph target (#184075)" - #188277

Merged
atalman merged 1 commit into
release/2.13from
frgossen/release-2.13-revert-184075
Jun 26, 2026
Merged

atalman merged 1 commit into
release/2.13from
frgossen/release-2.13-revert-184075

Conversation

@frgossen

@frgossen frgossen commented Jun 26, 2026 •

Copy link
Copy Markdown
Contributor

Release-branch (release/2.13) revert of #184075 "Tighten generalized scatter graph target". This is the cherry-pick counterpart of the main-branch revert #188219.

#184075 reworked Inductor's temporary generalized scatter form to use private OpOverload targets (a torch.library FRAGMENT registering generalized_scatter / inplace_generalized_scatter_ with flattened, encoded view-op arguments) and added matching Piecewise support in the z3 validator. This revert restores the prior representation that passes view ops as a list of ViewOp dataclasses directly as call_function args.

Conflict resolution

reinplace.py conflicted against the release branch. All hunks were resolved to the pre-PR form with bare asserts (no # noqa: S101), because torch/_inductor/** is still S101-exempt on release/2.13 (RUF100 would flag an unused noqa). Net effect is purely the inverse of #184075 (39 insertions / 558 deletions), removing the encode/decode machinery, the torch.library registration, and the z3 validator additions.

Test Plan

lintrunner torch/_inductor/fx_passes/reinplace.py

This PR was authored with the assistance of an AI agent.

cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @kadeng @muchulee8 @amjames @chauhang @aakhundov @coconutruben @jataylo

)"

This reverts commit b35bc89 on the
release/2.13 branch. It is the release-branch counterpart of the
main-branch revert (#188219).

PR #184075 reworked Inductor's temporary generalized scatter form to use
private OpOverload targets (a torch.library FRAGMENT registering
generalized_scatter / inplace_generalized_scatter_ with flattened,
encoded view-op arguments) and added matching Piecewise support in the
z3 validator. This revert restores the prior representation that passes
view ops as a list of ViewOp dataclasses directly as call_function args.

The reinplace.py hunks conflicted against the release branch; all were
resolved to the pre-PR form with bare asserts (torch/_inductor/** is
still S101-exempt on this branch, so no noqa is added), fully removing
the encode/decode machinery, the torch.library registration, and the
z3 validator additions.

Test Plan:

```
lintrunner torch/_inductor/fx_passes/reinplace.py
```

This PR was authored with the assistance of an AI agent.
@pytorch-bot

pytorch-bot Bot commented Jun 26, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

⏳ No Failures, 40 Pending

As of commit 43f0a9d with merge base 636bc91 (image):
💚 Looks good so far! There are no failures yet. 💚

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

@pytorch-bot pytorch-bot Bot added ci-no-td Do not run TD on this PR ciflow/inductor ciflow/torchtitan Run TorchTitan integration tests module: inductor release notes: fx release notes category labels Jun 26, 2026
@frgossen frgossen added suppress-bc-linter Suppresses the failures of API backward-compatibility linter (Lint/bc_linter) ciflow/trunk Trigger trunk jobs on your pull request labels Jun 26, 2026
@frgossen
frgossen requested review from atalman, jansel and zou3519 June 26, 2026 16:21
@frgossen
frgossen marked this pull request as ready for review June 26, 2026 16:30
@frgossen frgossen closed this Jun 26, 2026
@frgossen frgossen reopened this Jun 26, 2026
@frgossen

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge -f "all looks good. Lets merge"

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

PR targets release/2.13 rather than main, refusing merge request

@atalman
atalman merged commit 78e737a into release/2.13 Jun 26, 2026
376 of 508 checks passed
@github-actions
github-actions Bot deleted the frgossen/release-2.13-revert-184075 branch July 27, 2026 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-no-td Do not run TD on this PR ciflow/inductor ciflow/torchtitan Run TorchTitan integration tests ciflow/trunk Trigger trunk jobs on your pull request module: inductor release notes: fx release notes category suppress-bc-linter Suppresses the failures of API backward-compatibility linter (Lint/bc_linter)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants