← Back to events
ActiveAIRelease

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

What happened

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…

Summary assembled by rule from the sources below

Why it's spreading

Sources