viable/strict/1787533902: Prevent saving mutated grad inputs in AOT min-cut (#185876)
发生了什么
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…
摘要按规则整理自下方来源原文
为什么在扩散
时间线
- PyTorch Releases 最先出现PyTorch Releases