-
Notifications
You must be signed in to change notification settings - Fork 26.2k
[dynamo][ez] Initialize tracer_output to None by default. #163169
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
Summary: In edge cases, tracer_output can be left unset if there's double exception raised which causes the following issue: ``` UnboundLocalError: local variable 'tracer_output' referenced before assignment ``` Default initialize this variable so that it's always present. Test Plan: CI Rollback Plan: Differential Revision: D82652815
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/163169
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit aef93cc with merge base 2291199 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@zhxchen17 has exported this pull request. If you are a Meta employee, you can view the originating diff in D82652815. |
|
@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 |
…3169) Summary: In edge cases, tracer_output can be left unset if there's double exception raised which causes the following issue: ``` UnboundLocalError: local variable 'tracer_output' referenced before assignment ``` Default initialize this variable so that it's always present. Test Plan: CI Rollback Plan: Differential Revision: D82652815 Pull Request resolved: pytorch#163169 Approved by: https://github.com/tugsbayasgalan
…3169) Summary: In edge cases, tracer_output can be left unset if there's double exception raised which causes the following issue: ``` UnboundLocalError: local variable 'tracer_output' referenced before assignment ``` Default initialize this variable so that it's always present. Test Plan: CI Rollback Plan: Differential Revision: D82652815 Pull Request resolved: pytorch#163169 Approved by: https://github.com/tugsbayasgalan
…3169) Summary: In edge cases, tracer_output can be left unset if there's double exception raised which causes the following issue: ``` UnboundLocalError: local variable 'tracer_output' referenced before assignment ``` Default initialize this variable so that it's always present. Test Plan: CI Rollback Plan: Differential Revision: D82652815 Pull Request resolved: pytorch#163169 Approved by: https://github.com/tugsbayasgalan
|
@pytorchbot cherry-pick --onto release/2.9 --fixes "A crash from uninitialized value" -c regression |
Summary: In edge cases, tracer_output can be left unset if there's double exception raised which causes the following issue: ``` UnboundLocalError: local variable 'tracer_output' referenced before assignment ``` Default initialize this variable so that it's always present. Test Plan: CI Rollback Plan: Differential Revision: D82652815 Pull Request resolved: #163169 Approved by: https://github.com/tugsbayasgalan (cherry picked from commit 6189a5f)
Cherry picking #163169The cherry pick PR is at #167366 and it is linked with issue A crash from uninitialized value. The following tracker issues are updated: Details for Dev Infra teamRaised by workflow job |
[dynamo][ez] Initialize tracer_output to None by default. (#163169) Summary: In edge cases, tracer_output can be left unset if there's double exception raised which causes the following issue: ``` UnboundLocalError: local variable 'tracer_output' referenced before assignment ``` Default initialize this variable so that it's always present. Test Plan: CI Rollback Plan: Differential Revision: D82652815 Pull Request resolved: #163169 Approved by: https://github.com/tugsbayasgalan (cherry picked from commit 6189a5f) Co-authored-by: Zhengxu Chen <zhxchen17@meta.com>
Summary:
In edge cases, tracer_output can be left unset if there's double exception raised which causes the following issue:
Default initialize this variable so that it's always present.
Test Plan:
CI
Rollback Plan:
Differential Revision: D82652815
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames @Lucaskabela