[fx] Move _Namespace to C++#170962
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/170962
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New Failure, 1 Unrelated FailureAs of commit e639f5e with merge base e81980e ( NEW FAILURE - The following job has failed:
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. |
|
Rebased |
|
@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 |
This reverts commit a50d65a. Reverted #170962 on behalf of https://github.com/clee2000 due to sorry but I think this broke a test on inductor test/inductor/test_max_autotune.py::TestMaxAutotuneAsyncPipelined::test_empty_conv_input_search_space_EXHAUSTIVE_kernel_size_1 [GH job link](https://github.com/pytorch/pytorch/actions/runs/20510247600/job/58931365661) [HUD commit link](https://hud.pytorch.org/pytorch/pytorch/commit/a50d65ad2f8c39a19be6ee3d7e0b37b0f3f47189)? it might be a landrace since I see that it did succeed on this PR. Also its failing some tests internally D89800849 ([comment](#170946 (comment)))
ghstack-source-id: 60f7782 Pull-Request: pytorch/pytorch#170962
|
Starting merge as part of PR stack under #170973 |
Cumulative Changes (PR 170946 → PR 170973) | Benchmark | PR 170946 | PR 170973 | Delta | |---------------------------------------|-----------|-----------|-------| | add_loop_eager | 3,308M | 3,206M | -3.1% | | aotdispatcher_partitioner_cpu2 | 1,944M | 1,865M | -4.1% | | aotdispatcher_partitioner_cpu | 8,340M | 8,062M | -3.3% | | sum_floordiv_regression | 3,700M | 3,591M | -3.0% | | aotdispatcher_training_nosubclass_cpu | 3,242M | 3,168M | -2.3% | | update_hint_regression | 1,674M | 1,641M | -2.0% | | symint_sum_loop | 4,682M | 4,590M | -2.0% | | add_loop_inductor_gpu | 26,418M | 26,031M | -1.5% | | basic_NestedModule_eager | 6,171M | 6,084M | -1.4% | | add_loop_inductor | 29,736M | 29,342M | -1.3% | Pull Request resolved: #170973 Approved by: https://github.com/oulgen ghstack dependencies: #170946, #170962
|
@pytorchbot revert -m "reverted in fbcode" |
|
❌ 🤖 pytorchbot command failed: Try |
|
@pytorchbot revert -m "reverted in fbcode" -c nosignal |
|
@pytorchbot successfully started a revert job. Check the current status here. |
Reverting PR 170962 failedReason: Command Details for Dev Infra teamRaised by workflow job |
…ame (#176515)" (#176948) ## Summary Reverts #176515. This is a prerequisite for reverting the full `[fx] Move _Namespace to C++` series (#170962), which was reverted internally due to S627920 but the revert was never exported to GitHub. The quadratic fix patches `torch/csrc/fx/graph.cpp` which was introduced by #170962. This revert must land first so that #170962 can be cleanly reverted afterwards. ## Test plan CI — this revert removes a bugfix from C++ code that will itself be reverted in a follow-up PR. Pull Request resolved: #176948 Approved by: https://github.com/izaitsevfb, https://github.com/huydhn
|
@pytorchbot revert -m "reverted in fbcode" -c nosignal retrying revert after #176948 landed |
|
@pytorchbot successfully started a revert job. Check the current status here. |
This reverts commit 5c68844. Reverted #170962 on behalf of https://github.com/wdvr due to reverted in fbcode ([comment](#170962 (comment)))
|
@jansel your PR has been successfully reverted. |
## Summary Reverts #170946 This reverts commit fa27d4f. The two stacked PRs (#170962 and #170973) have already been reverted on main: - `0a06050b` Revert "[fx] Move _FindNodesLookupTable and _node_list to C++ (#170973)" - `2ee3377b` Revert "[fx] Move _Namespace to C++ (#170962)" - `fb60dd58` Revert "[fx] Fix quadratic name generation in _NamespaceBase.create_name (#176515)" The only merge conflict was in `torch/fx/node.py` due to a type annotation modernization PR (#176308, `Optional[X]` → `X | None`). The conflict was resolved by keeping the modern annotation style while restoring the original Python implementation. ## Test plan CI Pull Request resolved: #177047 Approved by: https://github.com/huydhn
ghstack-source-id: e346919 Pull-Request: pytorch/pytorch#170962
Pull Request resolved: pytorch#170962 Approved by: https://github.com/oulgen ghstack dependencies: pytorch#170946
Cumulative Changes (PR 170946 → PR 170973) | Benchmark | PR 170946 | PR 170973 | Delta | |---------------------------------------|-----------|-----------|-------| | add_loop_eager | 3,308M | 3,206M | -3.1% | | aotdispatcher_partitioner_cpu2 | 1,944M | 1,865M | -4.1% | | aotdispatcher_partitioner_cpu | 8,340M | 8,062M | -3.3% | | sum_floordiv_regression | 3,700M | 3,591M | -3.0% | | aotdispatcher_training_nosubclass_cpu | 3,242M | 3,168M | -2.3% | | update_hint_regression | 1,674M | 1,641M | -2.0% | | symint_sum_loop | 4,682M | 4,590M | -2.0% | | add_loop_inductor_gpu | 26,418M | 26,031M | -1.5% | | basic_NestedModule_eager | 6,171M | 6,084M | -1.4% | | add_loop_inductor | 29,736M | 29,342M | -1.3% | Pull Request resolved: pytorch#170973 Approved by: https://github.com/oulgen ghstack dependencies: pytorch#170946, pytorch#170962
…ame (pytorch#176515)" (pytorch#176948) ## Summary Reverts pytorch#176515. This is a prerequisite for reverting the full `[fx] Move _Namespace to C++` series (pytorch#170962), which was reverted internally due to S627920 but the revert was never exported to GitHub. The quadratic fix patches `torch/csrc/fx/graph.cpp` which was introduced by pytorch#170962. This revert must land first so that pytorch#170962 can be cleanly reverted afterwards. ## Test plan CI — this revert removes a bugfix from C++ code that will itself be reverted in a follow-up PR. Pull Request resolved: pytorch#176948 Approved by: https://github.com/izaitsevfb, https://github.com/huydhn
This reverts commit 5c68844. Reverted pytorch#170962 on behalf of https://github.com/wdvr due to reverted in fbcode ([comment](pytorch#170962 (comment)))
…ytorch#177047) ## Summary Reverts pytorch#170946 This reverts commit fa27d4f. The two stacked PRs (pytorch#170962 and pytorch#170973) have already been reverted on main: - `0a06050b` Revert "[fx] Move _FindNodesLookupTable and _node_list to C++ (pytorch#170973)" - `2ee3377b` Revert "[fx] Move _Namespace to C++ (pytorch#170962)" - `fb60dd58` Revert "[fx] Fix quadratic name generation in _NamespaceBase.create_name (pytorch#176515)" The only merge conflict was in `torch/fx/node.py` due to a type annotation modernization PR (pytorch#176308, `Optional[X]` → `X | None`). The conflict was resolved by keeping the modern annotation style while restoring the original Python implementation. ## Test plan CI Pull Request resolved: pytorch#177047 Approved by: https://github.com/huydhn
Stack from ghstack (oldest at bottom):
cc @ezyang @EikanWang @jgong5 @wenzhe-nrv