← Back to events
ActiveAIRelease

trunk/77e2446a88a185f32ef15b71db95fd055e25ffda: [dynamo] Trace torch.overrides.handle_torch_function (#196055)

What happened

torch.overrides.handle_torch_function is how Python-level functions participate in __torch_function__ dispatch. Dynamo tried to inline its body, which touches the C mode stack directly and fails. It is now a TorchInGraphFunctionVariable whose handler forwards to dispatch_torch_function , which gained a relevant_args parameter so that overload resolution only considers the objects the caller passed, as the eager impl…

Summary assembled by rule from the sources below

Why it's spreading

Sources