trunk/6df74531a6e7226f48394c5cb7af2953f2841a2a: Fix Dynamo wrapper method sources for nested compile (#184977)
- PyTorch 近 90 天出现 699 次
- PyTorch 近 90 天第 690 次发版
- 上一次:同一天稍早 · trunk/6d3bfe19bc19e7937c95c25f42d966806fae90a3
发生了什么
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…
摘要按规则整理自下方来源原文