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

trunk/6df74531a6e7226f48394c5cb7af2953f2841a2a: Fix Dynamo wrapper method sources for nested compile (#184977)

发生了什么

Methods decorated with torch.compile remain wrapper functions in their class dictionary, while the function Dynamo should inline lives at _torchdynamo_inline. Method lookup eagerly unwrapped that attribute into a UserMethodVariable. Its unbound-function source could still point at the outer wrapper, so closure guards for the inner function were evaluated against the wrong closure and eventually reached Dynamo's Catc…

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

为什么在扩散

来源