Repository navigation
[release/2.13] Revert "Tighten generalized scatter graph target (#184075)" - #188277
Merged
Merged
Conversation
)" 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.
🔗 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 PendingAs of commit 43f0a9d with merge base 636bc91 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
frgossen
marked this pull request as ready for review
June 26, 2026 16:30
Contributor
Author
|
@pytorchbot merge -f "all looks good. Lets merge" |
Collaborator
|
PR targets release/2.13 rather than main, refusing merge request |
zou3519
approved these changes
Jun 26, 2026
atalman
approved these changes
Jun 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.libraryFRAGMENT registeringgeneralized_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 ofViewOpdataclasses directly ascall_functionargs.Conflict resolution
reinplace.pyconflicted against the release branch. All hunks were resolved to the pre-PR form with bareasserts (no# noqa: S101), becausetorch/_inductor/**is stillS101-exempt onrelease/2.13(RUF100would flag an unused noqa). Net effect is purely the inverse of #184075 (39 insertions / 558 deletions), removing the encode/decode machinery, thetorch.libraryregistration, and the z3 validator additions.Test Plan
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