viable/strict/1790888005: [dynamo] Don't let observed exceptions pin the Python stack (#197567)
- PyTorch 近 90 天出现 2114 次
- PyTorch 近 90 天第 2085 次发版
- 上一次:同一天稍早 · trunk/795a4525a5882e3b77085fc55f2ead2b59676785
发生了什么
An ObservedException that unwinds out of a tracer ends up in a reference cycle with its own traceback, and only the cyclic GC can break it. That matters because the traceback covers the entire live Python stack at the point of the raise, so until the next gc pass the cycle pins every frame below Dynamo -- including user frames and everything their locals reference. Root cause: InstructionTranslatorBase.exception_han…
摘要按规则整理自下方来源原文