← 返回事件
持续讨论AI发版

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

发生了什么

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…

摘要按规则整理自下方来源原文

为什么在扩散

来源