trunk/07622962ce62fa3352b7e855186321a55bc1daa7: [dynamo] Fix callable attributes of polyfilled functions (#200361)
- PyTorch 近 90 天出现 2136 次
- PyTorch 近 90 天第 2107 次发版
- 上一次:同一天稍早 · viable/strict/1791629515
发生了什么
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…
摘要按规则整理自下方来源原文