-
Notifications
You must be signed in to change notification settings - Fork 24.7k
[dynamo, nested graph breaks] small fixes to resume function generation #151056
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
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/151056
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 08a06f1 with merge base 1c7a70b ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
… locals into a list" We need to be able to pass frame stack+locals in lists to hand off to nested functions in the future, so we implement this part first. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames [ghstack-poisoned]
… locals into a list" We need to be able to pass frame stack+locals in lists to hand off to nested functions in the future, so we implement this part first. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames [ghstack-poisoned]
… locals into a list" We need to be able to pass frame stack+locals in lists to hand off to nested functions in the future, so we implement this part first. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames [ghstack-poisoned]
… locals into a list" We need to be able to pass frame stack+locals in lists to hand off to nested functions in the future, so we implement this part first. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames [ghstack-poisoned]
…on generation" Old: ~pack resume function stack + locals into a list: we need to be able to pass frame stack+locals in lists to hand off to nested functions in the future, so we implement this part first.~ We are no longer doing this right now since GraphModule/guard variable naming gets messed up. Going forward, our approach will be to keep the top frame unpacked, but pack the rest of the contents of other frames in a list. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames [ghstack-poisoned]
…on generation" Old: ~pack resume function stack + locals into a list: we need to be able to pass frame stack+locals in lists to hand off to nested functions in the future, so we implement this part first.~ We are no longer doing this right now since GraphModule/guard variable naming gets messed up. Going forward, our approach will be to keep the top frame unpacked, but pack the rest of the contents of other frames in a list. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames [ghstack-poisoned]
…on generation" Old: ~pack resume function stack + locals into a list: we need to be able to pass frame stack+locals in lists to hand off to nested functions in the future, so we implement this part first.~ We are no longer doing this right now since GraphModule/guard variable naming gets messed up. Going forward, our approach will be to keep the top frame unpacked, but pack the rest of the contents of other frames in a list. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames [ghstack-poisoned]
…on generation" Old: ~pack resume function stack + locals into a list: we need to be able to pass frame stack+locals in lists to hand off to nested functions in the future, so we implement this part first.~ We are no longer doing this right now since GraphModule/guard variable naming gets messed up. Going forward, our approach will be to keep the top frame unpacked, but pack the rest of the contents of other frames in a list. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames [ghstack-poisoned]
…on generation" Old: ~pack resume function stack + locals into a list: we need to be able to pass frame stack+locals in lists to hand off to nested functions in the future, so we implement this part first.~ We are no longer doing this right now since GraphModule/guard variable naming gets messed up. Going forward, our approach will be to keep the top frame unpacked, but pack the rest of the contents of other frames in a list. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames [ghstack-poisoned]
@pytorchbot successfully started a revert job. Check the current status here. |
Reverting PR 151056 failedReason: list index out of range Details for Dev Infra teamRaised by workflow job |
…on generation" Old: ~pack resume function stack + locals into a list: we need to be able to pass frame stack+locals in lists to hand off to nested functions in the future, so we implement this part first.~ We are no longer doing this right now since GraphModule/guard variable naming gets messed up. Going forward, our approach will be to keep the top frame unpacked, but pack the rest of the contents of other frames in a list. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames [ghstack-poisoned]
Starting merge as part of PR stack under #153773 |
…en'ing (#153510) Stop codegening NULLs that we need to pop later. Some output_graph.py changes to prepare for nested graph break support. Pull Request resolved: #153510 Approved by: https://github.com/jansel ghstack dependencies: #151056
…t_graph (#153772) Pull Request resolved: #153772 Approved by: https://github.com/jansel ghstack dependencies: #151056, #153510
) Pull Request resolved: #153773 Approved by: https://github.com/jansel ghstack dependencies: #151056, #153510, #153772
…on (pytorch#151056) Old: ~pack resume function stack + locals into a list: we need to be able to pass frame stack+locals in lists to hand off to nested functions in the future, so we implement this part first.~ We are no longer doing this right now since GraphModule/guard variable naming gets messed up. Going forward, our approach will be to keep the top frame unpacked, but pack the rest of the contents of other frames in a list. Pull Request resolved: pytorch#151056 Approved by: https://github.com/jansel
…en'ing (pytorch#153510) Stop codegening NULLs that we need to pop later. Some output_graph.py changes to prepare for nested graph break support. Pull Request resolved: pytorch#153510 Approved by: https://github.com/jansel ghstack dependencies: pytorch#151056
…t_graph (pytorch#153772) Pull Request resolved: pytorch#153772 Approved by: https://github.com/jansel ghstack dependencies: pytorch#151056, pytorch#153510
…rch#153773) Pull Request resolved: pytorch#153773 Approved by: https://github.com/jansel ghstack dependencies: pytorch#151056, pytorch#153510, pytorch#153772
…on (pytorch#153773)" This reverts commit aadf9ea. Reverted pytorch#153773 on behalf of https://github.com/malfet due to Not sure which one, but it broke test_error_messages, see https://hud.pytorch.org/hud/pytorch/pytorch/203b0efd6395a419330cf5700889afd420a89b2f/1?per_page=50&name_filter=py3.13-clang10&mergeEphemeralLF=true ([comment](pytorch#151056 (comment)))
…in output_graph (pytorch#153772)" This reverts commit 9a66c30. Reverted pytorch#153772 on behalf of https://github.com/malfet due to Not sure which one, but it broke test_error_messages, see https://hud.pytorch.org/hud/pytorch/pytorch/203b0efd6395a419330cf5700889afd420a89b2f/1?per_page=50&name_filter=py3.13-clang10&mergeEphemeralLF=true ([comment](pytorch#151056 (comment)))
…LL codegen'ing (pytorch#153510)" This reverts commit 1fe9842. Reverted pytorch#153510 on behalf of https://github.com/malfet due to Not sure which one, but it broke test_error_messages, see https://hud.pytorch.org/hud/pytorch/pytorch/203b0efd6395a419330cf5700889afd420a89b2f/1?per_page=50&name_filter=py3.13-clang10&mergeEphemeralLF=true ([comment](pytorch#151056 (comment)))
…generation (pytorch#151056)" This reverts commit 28e7aa2. Reverted pytorch#151056 on behalf of https://github.com/malfet due to Not sure which one, but it 628C broke test_error_messages, see https://hud.pytorch.org/hud/pytorch/pytorch/203b0efd6395a419330cf5700889afd420a89b2f/1?per_page=50&name_filter=py3.13-clang10&mergeEphemeralLF=true ([comment](pytorch#151056 (comment)))
…on (pytorch#151056) Old: ~pack resume function stack + locals into a list: we need to be able to pass frame stack+locals in lists to hand off to nested functions in the future, so we implement this part first.~ We are no longer doing this right now since GraphModule/guard variable naming gets messed up. Going forward, our approach will be to keep the top frame unpacked, but pack the rest of the contents of other frames in a list. Pull Request resolved: pytorch#151056 Approved by: https://github.com/jansel
…en'ing (pytorch#153510) Stop codegening NULLs that we need to pop later. Some output_graph.py changes to prepare for nested graph break support. Pull Request resolved: pytorch#153510 Approved by: https://github.com/jansel ghstack dependencies: pytorch#151056
…t_graph (pytorch#153772) Pull Request resolved: pytorch#153772 Approved by: https://github.com/jansel ghstack dependencies: pytorch#151056, pytorch#153510
…rch#153773) Pull Request resolved: pytorch#153773 Approved by: https://github.com/jansel ghstack dependencies: pytorch#151056, pytorch#153510, pytorch#153772
…on (pytorch#151056) Old: ~pack resume function stack + locals into a list: we need to be able to pass frame stack+locals in lists to hand off to nested functions in the future, so we implement this part first.~ We are no longer doing this right now since GraphModule/guard variable naming gets messed up. Going forward, our approach will be to keep the top frame unpacked, but pack the rest of the contents of other frames in a list. Pull Request resolved: pytorch#151056 Approved by: https://github.com/jansel
…en'ing (pytorch#153510) Stop codegening NULLs that we need to pop later. Some output_graph.py changes to prepare for nested graph break support. Pull Request resolved: pytorch#153510 Approved by: https://github.com/jansel ghstack dependencies: pytorch#151056
…t_graph (pytorch#153772) Pull Request resolved: pytorch#153772 Approved by: https://github.com/jansel ghstack dependencies: pytorch#151056, pytorch#153510
…rch#153773) Pull Request resolved: pytorch#153773 Approved by: https://github.com/jansel ghstack dependencies: pytorch#151056, pytorch#153510, pytorch#153772
…on (pytorch#151056) Old: ~pack resume function stack + locals into a list: we need to be able to pass frame stack+locals in lists to hand off to nested functions in the future, so we implement this part first.~ We are no longer doing this right now since GraphModule/guard variable naming gets messed up. Going forward, our approach will be to keep the top frame unpacked, but pack the rest of the contents of other frames in a list. Pull Request resolved: pytorch#151056 Approved by: https://github.com/jansel
…en'ing (pytorch#153510) Stop codegening NULLs that we need to pop later. Some output_graph.py changes to prepare for nested graph break support. Pull Request resolved: pytorch#153510 Approved by: https://github.com/jansel ghstack dependencies: pytorch#151056
…t_graph (pytorch#153772) Pull Request resolved: pytorch#153772 Approved by: https://github.com/jansel ghstack dependencies: pytorch#151056, pytorch#153510
…rch#153773) Pull Request resolved: pytorch#153773 Approved by: https://github.com/jansel ghstack dependencies: pytorch#151056, pytorch#153510, pytorch#153772
Stack from ghstack (oldest at bottom):
Old:
pack resume function stack + locals into a list: we need to be able to pass frame stack+locals in lists to hand off to nested functions in the future, so we implement this part first.We are no longer doing this right now since GraphModule/guard variable naming gets messed up. Going forward, our approach will be to keep the top frame unpacked, but pack the rest of the contents of other frames in a list.
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames