Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/184075
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ✅ You can merge normally! (2 Unrelated Failures)As of commit 85781a1 with merge base cc4faaa ( FLAKY - The following jobs failed but were likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@claude review these changes |
|
Claude finished @jansel's task in 2m 18s —— View job Code Review: Tighten generalized scatter graph target
Summary: This PR converts Verdict: This looks good. The approach is clean and the encoding/decoding is well-structured. A few observations below: DesignThe encoding scheme ( Registering with Minor observations
TestThe new LGTM overall. No blocking issues found. |
Represent Inductor's temporary generalized scatter form with private OpOverload targets and dispatcher-friendly encoded view args so intermediate reinplace graphs do not contain plain Python call_function targets. Add regression coverage for symbolic view args, unrelated view ops, and the post-canonicalization graph invariant. Fixes #156818 Generated by my agent ghstack-source-id: 165372b Pull-Request: #184075
|
@claude review these changes |
|
Claude finished @jansel's task in 1m 31s —— View job Code Review: Tighten generalized scatter graph target
Summary: This PR converts Verdict: LGTM. The approach is clean and well-structured. Observations below: DesignThe encoding scheme is a sound approach to flatten arbitrary
Observations
TestsThe three new tests provide good coverage:
No blocking issues found. |
Represent Inductor's temporary generalized scatter form with private OpOverload targets and dispatcher-friendly encoded view args so intermediate reinplace graphs do not contain plain Python call_function targets. Add regression coverage for symbolic view args, unrelated view ops, and the post-canonicalization graph invariant. Fixes #156818 Generated by my agent ghstack-source-id: 5d76c8b Pull-Request: #184075
|
@claude review these changes |
|
Claude finished @jansel's task in 2m 16s —— View job Code Review: Tighten generalized scatter graph target
Summary: This PR converts Verdict: LGTM — the implementation is clean and thorough. Notes below. Design strengths
Observations
TestsGood edge-case coverage:
No blocking issues found. |
Represent Inductor's temporary generalized scatter form with private OpOverload targets and dispatcher-friendly encoded view args so intermediate reinplace graphs do not contain plain Python call_function targets. Validate scatter source broadcastability via the refs expand path to avoid unsupported translation-validation guard expressions. Fixes #156818 Generated by my agent ghstack-source-id: d02a276 Pull-Request: #184075
|
@claude review these changes |
|
Claude finished @jansel's task in 1m 27s —— View job Code Review: Tighten generalized scatter graph target
Summary: This PR converts Verdict: LGTM. Clean design, well-tested. Notes below. Design
Observations
TestsGood coverage across multiple dimensions:
No blocking issues found. |
Represent Inductor's temporary generalized scatter form with private OpOverload targets and dispatcher-friendly encoded view args so intermediate reinplace graphs do not contain plain Python call_function targets. Validate scatter source broadcastability via the refs expand path and teach translation validation to lower SymPy Piecewise guards to Z3. Fixes #156818 Generated by my agent ghstack-source-id: a29f6ed Pull-Request: #184075
|
@claude review these changes |
|
Claude finished @jansel's task in 1m 24s —— View job Code Review: Tighten generalized scatter graph target
Summary: This PR converts Verdict: LGTM. Clean, well-structured implementation with good test coverage. Notes below. Design
Observations
TestsComprehensive edge-case coverage:
No blocking issues found. |
|
@zou3519 can you look at this one? |
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Represent Inductor's temporary generalized scatter form with private OpOverload targets so intermediate reinplace graphs do not contain plain Python function call_function targets. Add regression coverage for the post-canonicalization graph invariant. Fixes pytorch#156818 Generated by my agent Pull Request resolved: pytorch#184075 Approved by: https://github.com/oulgen, https://github.com/zou3519
Represent Inductor's temporary generalized scatter form with private OpOverload targets so intermediate reinplace graphs do not contain plain Python function call_function targets. Add regression coverage for the post-canonicalization graph invariant. Fixes pytorch#156818 Generated by my agent Pull Request resolved: pytorch#184075 Approved by: https://github.com/oulgen, https://github.com/zou3519
|
@pytorchbot revert -m "Silent correctness regression in inductor reinplacing pass corrupts fp8 weights. Bisected and revert-confirmed on H100. See #188152" -c nosignal |
|
@pytorchbot successfully started a revert job. Check the current status here. |
Reverting PR 184075 failedReason: Command Details for Dev Infra teamRaised by workflow job |
|
Reverting in #188219 |
This reverts commit b35bc89. 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 revert was applied on top of current main; three hunks in reinplace.py conflicted only because later commits had refactored the PR-introduced code (assert -> raise AssertionError). All conflicts were resolved to the pre-PR form, fully removing the encode/decode machinery, the torch.library registration, and the validator additions. Test Plan: ``` python -c "import ast; ast.parse(open('torch/_inductor/fx_passes/reinplace.py').read())" python test/inductor/test_inplacing_pass.py ``` This PR was authored with the assistance of an AI agent. ghstack-source-id: 71af8ae Pull-Request: #188219
This reverts commit b35bc89. 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 revert was applied on top of current main; three hunks in reinplace.py conflicted only because later commits had refactored the PR-introduced code (assert -> raise AssertionError). All conflicts were resolved to the pre-PR form, fully removing the encode/decode machinery, the torch.library registration, and the validator additions. Test Plan: ``` python -c "import ast; ast.parse(open('torch/_inductor/fx_passes/reinplace.py').read())" python test/inductor/test_inplacing_pass.py ``` This PR was authored with the assistance of an AI agent. ghstack-source-id: af9ab73 Pull-Request: #188219
This reverts commit b35bc89. 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 revert was applied on top of current main; three hunks in reinplace.py conflicted only because later commits had refactored the PR-introduced code (assert -> raise AssertionError). All conflicts were resolved to the pre-PR form, fully removing the encode/decode machinery, the torch.library registration, and the validator additions. Test Plan: ``` python -c "import ast; ast.parse(open('torch/_inductor/fx_passes/reinplace.py').read())" python test/inductor/test_inplacing_pass.py ``` This PR was authored with the assistance of an AI agent. ghstack-source-id: a985ff5 Pull-Request: #188219
This reverts commit b35bc89. 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 revert was applied on top of current main; three hunks in reinplace.py conflicted only because later commits had refactored the PR-introduced code (assert -> raise AssertionError). All conflicts were resolved to the pre-PR form, fully removing the encode/decode machinery, the torch.library registration, and the validator additions. Test Plan: ``` python -c "import ast; ast.parse(open('torch/_inductor/fx_passes/reinplace.py').read())" python test/inductor/test_inplacing_pass.py ``` This PR was authored with the assistance of an AI agent. Pull Request resolved: #188219 Approved by: https://github.com/atalman, https://github.com/zou3519
)" (#188277) 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.
Represent Inductor's temporary generalized scatter form with private OpOverload targets so intermediate reinplace graphs do not contain plain Python function call_function targets. Add regression coverage for the post-canonicalization graph invariant. Fixes pytorch#156818 Generated by my agent Pull Request resolved: pytorch#184075 Approved by: https://github.com/oulgen, https://github.com/zou3519
…ytorch#188219) This reverts commit b35bc89. PR pytorch#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 revert was applied on top of current main; three hunks in reinplace.py conflicted only because later commits had refactored the PR-introduced code (assert -> raise AssertionError). All conflicts were resolved to the pre-PR form, fully removing the encode/decode machinery, the torch.library registration, and the validator additions. Test Plan: ``` python -c "import ast; ast.parse(open('torch/_inductor/fx_passes/reinplace.py').read())" python test/inductor/test_inplacing_pass.py ``` This PR was authored with the assistance of an AI agent. Pull Request resolved: pytorch#188219 Approved by: https://github.com/atalman, https://github.com/zou3519
…ytorch#188219) This reverts commit b35bc89. PR pytorch#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 revert was applied on top of current main; three hunks in reinplace.py conflicted only because later commits had refactored the PR-introduced code (assert -> raise AssertionError). All conflicts were resolved to the pre-PR form, fully removing the encode/decode machinery, the torch.library registration, and the validator additions. Test Plan: ``` python -c "import ast; ast.parse(open('torch/_inductor/fx_passes/reinplace.py').read())" python test/inductor/test_inplacing_pass.py ``` This PR was authored with the assistance of an AI agent. Pull Request resolved: pytorch#188219 Approved by: https://github.com/atalman, https://github.com/zou3519
Represent Inductor's temporary generalized scatter form with private OpOverload targets so intermediate reinplace graphs do not contain plain Python function call_function targets. Add regression coverage for the post-canonicalization graph invariant. Fixes pytorch#156818 Generated by my agent Pull Request resolved: pytorch#184075 Approved by: https://github.com/oulgen, https://github.com/zou3519
…ytorch#188219) This reverts commit b35bc89. PR pytorch#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 revert was applied on top of current main; three hunks in reinplace.py conflicted only because later commits had refactored the PR-introduced code (assert -> raise AssertionError). All conflicts were resolved to the pre-PR form, fully removing the encode/decode machinery, the torch.library registration, and the validator additions. Test Plan: ``` python -c "import ast; ast.parse(open('torch/_inductor/fx_passes/reinplace.py').read())" python test/inductor/test_inplacing_pass.py ``` This PR was authored with the assistance of an AI agent. Pull Request resolved: pytorch#188219 Approved by: https://github.com/atalman, https://github.com/zou3519
Stack from ghstack (oldest at bottom):
Represent Inductor's temporary generalized scatter form with private OpOverload targets so intermediate reinplace graphs do not contain plain Python function call_function targets. Add regression coverage for the post-canonicalization graph invariant.
Fixes #156818
Generated by my agent
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @kadeng @muchulee8 @amjames @chauhang @aakhundov @coconutruben @jataylo