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

trunk/9a32e12fc5da06217fb6f90d6f3438eb609afd21: [dynamo] Guard autocast objects by value rather than identity (#194754)

发生了什么

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…

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

为什么在扩散

来源