-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[export] Change fx graph _replace_hook to a list of Callable #142006
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/142006
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 6e05966 with merge base 291626f ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
This pull request was exported from Phabricator. Differential Revision: D66726724 |
bd71f34 to
15b1386
Compare
|
This pull request was exported from Phabricator. Differential Revision: D66726724 |
…#142006) Summary: Change fx graph module's _replace_hook from a single hook, to a list of hooks. This is to prepare to registering more hooks for inductor provenance tracking, where we might need to register multiple hooks for node replacement. Test Plan: ``` buck run mode/dev-nosan caffe2/test:fx -- -r test_hooks_for_node_update buck run mode/dev-nosan caffe2/test:test_export -- -r test_replace_hook buck run @//mode/dev-nosan -c fbcode.enable_gpu_sections=true test/distributed/_tensor/experimental:tp_transform ``` Differential Revision: D66726724
15b1386 to
6e05966
Compare
|
This pull request was exported from Phabricator. Differential Revision: D66726724 |
|
@pytorchbot merge (Initiating merge automatically since Phabricator Diff has merged) |
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 |
…#142006) Summary: Change fx graph module's _replace_hook from a single hook, to a list of hooks. This is to prepare to registering more hooks for inductor provenance tracking, where we might need to register multiple hooks for node replacement. Test Plan: ``` buck run mode/dev-nosan caffe2/test:fx -- -r test_hooks_for_node_update buck run mode/dev-nosan caffe2/test:test_export -- -r test_replace_hook ``` Differential Revision: D66726724 Pull Request resolved: pytorch#142006 Approved by: https://github.com/zhxchen17
Summary: Change fx graph module's _replace_hook from a single hook, to a list of hooks. This is to prepare to registering more hooks for inductor provenance tracking, where we might need to register multiple hooks for node replacement.
Test Plan:
Differential Revision: D66726724
cc @ezyang @SherlockNoMad @EikanWang @jgong5 @wenzhe-nrv