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

trunk/07622962ce62fa3352b7e855186321a55bc1daa7: [dynamo] Fix callable attributes of polyfilled functions (#200361)

图:PyTorch Releases

发生了什么

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…

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

为什么在扩散

来源