← Back to events
ActiveAIRelease

viable/strict/1787533902: Prevent saving mutated grad inputs in AOT min-cut (#185876)

What happened

AOTAutograd clones data-mutated grad inputs in the joint trace so the backward graph can read their pre-mutation values. The Inductor min-cut partitioner could still choose the original primal input placeholder as a saved activation. At runtime that placeholder aliases the user's input, which is mutated by the AOT forward epilogue after the forward returns, so autograd later sees a bumped version counter and fails d…

Summary assembled by rule from the sources below

Why it's spreading

Timeline

  1. First appeared on PyTorch ReleasesPyTorch Releases

Sources