trunk/9a32e12fc5da06217fb6f90d6f3438eb609afd21: [dynamo] Guard autocast objects by value rather than identity (#194754)
- PyTorch 近 90 天出现 509 次
- PyTorch 近 90 天第 504 次发版
- 上一次:同一天稍早 · trunk/79629b0421e09c28727f3bb8c5363abae4c9a88b: Label tests that should run on CuTeDSL or B200 appropriately (#193606)
发生了什么
Autocast objects are decomposed into device, dtype, enabled, and cache settings during tracing, but VariableBuilder guarded the object itself with ID_MATCH . Replacing an autocast object with an equivalent instance therefore caused an unnecessary recompile, while mutating the same object could reuse a stale graph. Identity guards also cannot be serialized for precompilation. This installs a type guard plus equality…
摘要按规则整理自下方来源原文