Commit f36c764
[dynamo][ez] Initialize tracer_output to None by default. (pytorch#167366)
[dynamo][ez] Initialize tracer_output to None by default. (pytorch#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: pytorch#163169
Approved by: https://github.com/tugsbayasgalan
(cherry picked from commit 6189a5f)
Co-authored-by: Zhengxu Chen <[email protected]>1 parent 6877288 commit f36c764
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1429 | 1429 | | |
1430 | 1430 | | |
1431 | 1431 | | |
| 1432 | + | |
1432 | 1433 | | |
1433 | 1434 | | |
1434 | 1435 | | |
| |||
0 commit comments