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

viable/strict/1791638823: [dynamo] Fix callable attributes of polyfilled functions (#200361)

发生了什么

Calling a polyfilled function's __torch_dynamo_polyfill__ or __wrapped__ attribute during tracing raises "Polyfill handler ... does not have a traceable function". PolyfilledFunctionVariable.call_method assumes the attribute is itself a registered polyfill, although it can be an ordinary Python function. Build callable attributes through the normal variable dispatcher, retaining their attribute source for guards. On…

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

为什么在扩散

来源