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
[export] Move attrs to properties and add BC decorator #106170
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/106170
Note: Links to docs will display an error until the docs builds have been completed. ⏳ 1 Pending, 1 Unrelated FailureAs of commit 80c560a: UNSTABLE - The following job failed but was likely due to flakiness present on trunk and has been marked as unstable:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
@angelayi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Summary: SherlockNoMad mentioned that it's not bc safe to directly access these attributes, so I moved them to property fields, and added a `compatibility` decorator. For now I just set it to True for graph_module/graph. Pull Request resolved: #106170 Reviewed By: SherlockNoMad Differential Revision: D47855081 Pulled By: angelayi fbshipit-source-id: f17d2bc4cf6d3a754795dc731bb9460cd836a7c2
This pull request was exported from Phabricator. Differential Revision: D47855081 |
@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 |
@angelayi sorry I'm late, want to ask why graph_module is mutable? I think it will be a bit broken to do so. |
@zhxchen17 For cases where just the graph module is transformed, I thought it might be easier to just do |
we shouldn't support ep.graph_module = new_graph_module to end users right? |
@SherlockNoMad mentioned that it's not bc safe to directly access these attributes, so I moved them to @Property fields, and added a
@compatibility
decorator. For now I just set it to True for graph_module/graph.