mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
Fixes #99665 Let me explain the root cause using the unit test I added: * This bug is triggered when: * ```wrapped``` is a nested function. * ```wrapped``` is in another module which is different from the main function ```fn```. * There is a graph break inside of ```wrapped```. * The root cause is when resuming nested function, actually we are using the outermost function(```fn``` in my example)'s global variables, but ```wrapped``` calls ```inner_func``` which is not part of ```fn```'s globals, so we have to set correct globals when nested function resume execution. Pull Request resolved: https://github.com/pytorch/pytorch/pull/100426 Approved by: https://github.com/jansel |
||
|---|---|---|
| .. | ||
| backends | ||
| repro | ||
| variables | ||
| __init__.py | ||
| allowed_functions.py | ||
| bytecode_analysis.py | ||
| bytecode_transformation.py | ||
| codegen.py | ||
| comptime.py | ||
| config.py | ||
| config_utils.py | ||
| convert_frame.py | ||
| debug_utils.py | ||
| eval_frame.py | ||
| exc.py | ||
| external_utils.py | ||
| guards.py | ||
| hooks.py | ||
| logging.py | ||
| mutation_guard.py | ||
| output_graph.py | ||
| profiler.py | ||
| replay_record.py | ||
| resume_execution.py | ||
| side_effects.py | ||
| skipfiles.py | ||
| source.py | ||
| symbolic_convert.py | ||
| test_case.py | ||
| test_minifier_common.py | ||
| testing.py | ||
| types.py | ||
| utils.py | ||