mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[dynamo, nested graph breaks] support nested closures (#159817)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/159817 Approved by: https://github.com/anijain2305 ghstack dependencies: #159329, #159678
This commit is contained in:
committed by
PyTorch MergeBot
parent
3f8090809f
commit
d0a242e547
@ -1206,7 +1206,6 @@ def add_graph_break_if_leaf_instructions(instructions: list[Instruction]) -> Non
|
||||
create_instruction("NOP", argval="GRAPH_BREAK_IF_LEAF"),
|
||||
create_instruction(inst.opname, argval=inst.argval),
|
||||
]
|
||||
# breakpoint()
|
||||
new_insts.extend(overwrite_instruction(inst, replace_insts))
|
||||
else:
|
||||
new_insts.append(inst)
|
||||
|
Reference in New Issue
Block a user