[fx] Move the rest of torch.fx.Node to C++#170946
[fx] Move the rest of torch.fx.Node to C++#170946jansel wants to merge 11 commits intogh/jansel/586/basefrom
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/170946
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 feb6b74 with merge base e81980e ( 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. |
oulgen
left a comment
There was a problem hiding this comment.
i remember the last time you did this, there was a memory leak. Is there anything we can do preemptively to make sure there's no leak? I stared through the memory allocation logic but its hard to be sure
That one was fixed and landed already. I asked both Claude and Codex to check for leaks and semantics changes. |
|
Rebased |
|
Starting merge as part of PR stack under #170962 |
Pull Request resolved: #170962 Approved by: https://github.com/oulgen ghstack dependencies: #170945, #170946
Pull Request resolved: pytorch#170946 Approved by: https://github.com/oulgen ghstack dependencies: pytorch#170945
Pull Request resolved: pytorch#170962 Approved by: https://github.com/oulgen ghstack dependencies: pytorch#170945, pytorch#170946
This reverts commit a50d65a. Reverted pytorch#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](pytorch#170946 (comment)))
This reverts commit 84db132. Reverted pytorch#170946 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](pytorch#170946 (comment)))
ghstack-source-id: 7e65678 Pull-Request: pytorch/pytorch#170946
|
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as |
|
Starting merge as part of PR stack under #170973 |
Pull Request resolved: #170962 Approved by: https://github.com/oulgen ghstack dependencies: #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: #170973 Approved by: https://github.com/oulgen ghstack dependencies: #170946, #170962
|
@pytorchmergebot revert -m "reverting as part of the #170962 stack" -c ghfirst |
|
@pytorchbot successfully started a revert job. Check the current status here. |
Reverting PR 170946 failedReason: Command Details for Dev Infra teamRaised by workflow job |
This reverts commit fa27d4f.
## 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
This reverts commit 68bcdcb. Reverted #177047 on behalf of https://github.com/pytorch-auto-revert due to Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable ([comment](#177047 (comment)))
…170946)" (pytorch#177047)" This reverts commit 4bc9d7f.
ghstack-source-id: 10cdf12 Pull-Request: pytorch/pytorch#170946
Stack from ghstack (oldest at bottom):
cc @ezyang @EikanWang @jgong5 @wenzhe-nrv @albanD @voznesenskym @penguinwu @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @jiayisunx @ipiszy @kadeng @muchulee8 @amjames @chauhang @aakhundov @coconutruben @jataylo