trunk/9ce9cbd1525ee2ecf420078c3784c529949642aa: [dynamo] Add handler for `classmethod()` and `staticmethod()` (#197781)
- PyTorch 近 90 天出现 1775 次
- PyTorch 近 90 天第 1753 次发版
- 上一次:同一天稍早 · ciflow/trunk/199415: [memory_viz] Move initial pool summaries with their envelopes
发生了什么
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…
摘要按规则整理自下方来源原文