← Back to events
ActiveAIRelease

trunk/9ce9cbd1525ee2ecf420078c3784c529949642aa: [dynamo] Add handler for `classmethod()` and `staticmethod()` (#197781)

What happened

Summary Calling classmethod(...) or staticmethod(...) inside a torch.compile region graph-breaks: torch._dynamo.exc.Unsupported: Failed to trace builtin operator Explanation: Dynamo does not know how to trace builtin operator `classmethod` with argument types ['function'] (has_kwargs False) This is hit by CPython's own test_funcattrs.StaticMethodAttrsTest.test_func_attribute , so the change also removes that entry f…

Summary assembled by rule from the sources below

Why it's spreading

Sources