← Back to events
ActiveAIRelease

trunk/6df74531a6e7226f48394c5cb7af2953f2841a2a: Fix Dynamo wrapper method sources for nested compile (#184977)

What happened

Methods decorated with torch.compile remain wrapper functions in their class dictionary, while the function Dynamo should inline lives at _torchdynamo_inline. Method lookup eagerly unwrapped that attribute into a UserMethodVariable. Its unbound-function source could still point at the outer wrapper, so closure guards for the inner function were evaluated against the wrong closure and eventually reached Dynamo's Catc…

Summary assembled by rule from the sources below

Why it's spreading

Sources