Skip to content

[fx] Move _FindNodesLookupTable and _node_list to C++#170973

Open
jansel wants to merge 12 commits intogh/jansel/588/basefrom
gh/jansel/588/head
Open

[fx] Move _FindNodesLookupTable and _node_list to C++#170973
jansel wants to merge 12 commits intogh/jansel/588/basefrom
gh/jansel/588/head

Conversation

@jansel
Copy link
Contributor

@jansel jansel commented Dec 21, 2025

Stack from ghstack (oldest at bottom):

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%

cc @ezyang @EikanWang @jgong5 @wenzhe-nrv @voznesenskym @penguinwu @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @jiayisunx @kadeng @chauhang @amjames @Lucaskabela @jataylo

[ghstack-poisoned]
@pytorch-bot pytorch-bot bot added the release notes: fx release notes category label Dec 21, 2025
@pytorch-bot
Copy link

pytorch-bot bot commented Dec 21, 2025

🔗 Helpful Links

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

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

✅ You can merge normally! (2 Unrelated Failures)

As of commit 62ce137 with merge base e81980e (image):

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.

jansel added a commit that referenced this pull request Dec 21, 2025
@jansel jansel marked this pull request as draft December 21, 2025 06:34
jansel added a commit that referenced this pull request Dec 21, 2025
@jansel jansel added the suppress-bc-linter Suppresses the failures of API backward-compatibility linter (Lint/bc_linter) label Dec 21, 2025
[ghstack-poisoned]
jansel added a commit that referenced this pull request Dec 21, 2025
[ghstack-poisoned]
jansel added a commit that referenced this pull request Dec 21, 2025
[ghstack-poisoned]
jansel added a commit that referenced this pull request Dec 21, 2025
@jansel jansel added ciflow/trunk Trigger trunk jobs on your pull request ciflow/inductor labels Dec 22, 2025
[ghstack-poisoned]
jansel added a commit that referenced this pull request Dec 22, 2025
@jansel jansel marked this pull request as ready for review December 24, 2025 19:25
@jansel jansel requested a review from oulgen December 24, 2025 19:29
[ghstack-poisoned]
jansel added a commit that referenced this pull request Dec 24, 2025
@jansel
Copy link
Contributor Author

jansel commented Dec 25, 2025

@pytorchbot rebase

@github-actions
Copy link
Contributor

Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as Stale.
Feel free to remove the Stale label if you feel this was a mistake.
If you are unable to remove the Stale label please contact a maintainer in order to do so.
If you want the bot to never mark this PR stale again, add the no-stale label.
Stale pull requests will automatically be closed after 30 days of inactivity.

@github-actions github-actions bot added the Stale label Feb 23, 2026
[ghstack-poisoned]
jansel added a commit that referenced this pull request Feb 24, 2026
[ghstack-poisoned]
jansel added a commit that referenced this pull request Feb 24, 2026
@jansel jansel removed the Stale label Feb 25, 2026
[ghstack-poisoned]
jansel added a commit that referenced this pull request Feb 25, 2026
[ghstack-poisoned]
jansel added a commit that referenced this pull request Feb 26, 2026
[ghstack-poisoned]
jansel added a commit that referenced this pull request Feb 26, 2026
@jansel
Copy link
Contributor Author

jansel commented Feb 26, 2026

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your 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

Advanced Debugging
Check the merge workflow status
here

@facebook-github-bot
Copy link
Contributor

@pytorchbot revert -m="Diff reverted internally" -c="ghfirst"

This Pull Request has been reverted by a revert inside Meta. To re-land this change, please open another pull request, assign the same reviewers, fix the CI failures that caused the revert and make sure that the failing CI runs on the PR by applying the proper ciflow label (e.g., ciflow/trunk).)

@pytorchmergebot
Copy link
Collaborator

@pytorchbot successfully started a revert job. Check the current status here.
Questions? Feedback? Please reach out to the PyTorch DevX Team

pytorchmergebot added a commit that referenced this pull request Mar 1, 2026
@pytorchmergebot
Copy link
Collaborator

@jansel your PR has been successfully reverted.

@pytorchmergebot pytorchmergebot added Reverted ci-no-td Do not run TD on this PR labels Mar 1, 2026
pytorchmergebot pushed a commit that referenced this pull request Mar 11, 2026
## 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
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/trunk Trigger trunk jobs on your pull request fx Merged module: dynamo release notes: fx release notes category Reverted 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