-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[dynamo, nested graph breaks] disable nested graph breaks in generators; enable nested_graph_breaks in test_ctx_manager.py and test_generator.py #165809
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
…mo/test_ctx_manager.py [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/165809
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ✅ No FailuresAs of commit 910701f with merge base a988510 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
…n test/dynamo/test_ctx_manager.py" cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames Lucaskabela [ghstack-poisoned]
Lucaskabela
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with clear semantics here :)
…n test/dynamo/test_ctx_manager.py" cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames Lucaskabela [ghstack-poisoned]
test/dynamo/test_ctx_manager.py
Outdated
| super().tearDown() | ||
| torch._dynamo.config.enable_trace_contextlib = self._prev | ||
| torch._dynamo.config.enable_trace_unittest = self._u_prev | ||
| torch._dynamo.config.nested_graph_breaks = False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't you save the previous value? Otherwise, you may falsify a flag that was originally True.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed this in #166013
…in generators; enable nested_graph_breaks in test_ctx_manager.py and test_generator.py" Generators should not support nested graph breaks. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames Lucaskabela [ghstack-poisoned]
…in generators; enable nested_graph_breaks in test_ctx_manager.py and test_generator.py" Generators should not support nested graph breaks. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames Lucaskabela [ghstack-poisoned]
…in generators; enable nested_graph_breaks in test_ctx_manager.py and test_generator.py" Generators should not support nested graph breaks. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames Lucaskabela [ghstack-poisoned]
|
Starting merge as part of PR stack under #166016 |
…rs; enable nested_graph_breaks in test_ctx_manager.py and test_generator.py ghstack-source-id: bb4bb3c Pull Request resolved: pytorch/pytorch#165809
…mo/test_ctx_manager.py ghstack-source-id: 1e78191 Pull Request resolved: pytorch/pytorch#165809
Stack from ghstack (oldest at bottom):
Generators should not support nested graph breaks.
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames @Lucaskabela