-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[export] Disable AttrProxy when every submodule has a unique path. #139918
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/139918
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 5e3317f with merge base c35a011 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This pull request was exported from Phabricator. Differential Revision: D65555919 |
…ytorch#139918) Summary: In most cases, we don't need to turn on AttrProxy tracing for two reasons: 1. It's only needed when you have one submodule owning multiple FQNs. 2. AND it will cause model using module identity to be traced incorrectly (because we substitute module objects at tracing time). Overall after offline discussion with some export folk, we think it's better to turn off AttrProxy if we can make sure every submodule has unique FQN, which tends to be the common case. Test Plan: buck test mode/opt caffe2/test:test_export -- -r module_dict_key Reviewed By: tugsbayasgalan Differential Revision: D65555919
c7e7f70
to
5e3317f
Compare
This pull request was exported from Phabricator. Differential Revision: D65555919 |
@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 |
…ytorch#139918) Summary: In most cases, we don't need to turn on AttrProxy tracing for two reasons: 1. It's only needed when you have one submodule owning multiple FQNs. 2. AND it will cause model using module identity to be traced incorrectly (because we substitute module objects at tracing time). Overall after offline discussion with some export folk, we think it's better to turn off AttrProxy if we can make sure every submodule has unique FQN, which tends to be the common case. Test Plan: buck test mode/opt caffe2/test:test_export -- -r module_dict_key Differential Revision: D65555919 Pull Request resolved: pytorch#139918 Approved by: https://github.com/tugsbayasgalan
Summary:
In most cases, we don't need to turn on AttrProxy tracing for two reasons:
Overall after offline discussion with some export folk, we think it's better to turn off AttrProxy if we can make sure every submodule has unique FQN, which tends to be the common case.
Test Plan: buck test mode/opt caffe2/test:test_export -- -r module_dict_key
Differential Revision: D65555919
cc @ezyang @SherlockNoMad @EikanWang @jgong5 @wenzhe-nrv