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

trunk/37f98dafc00455cd64e7c3beea86c035ae5e6bee: [precompile] Apply a make_fx capture's in-place updates once (#198243)

发生了什么

Problem. A make_fx capture ran the caller's fn twice, once to trace it and once to serve the rendered artifact. Every in-place update in fn , such as a BatchNorm's running stats or an x.add_(1) , landed twice. The hazard comes from the commit directly below, which added capture() and its serve; the two land together. Fix. Restore the buffers and tensor inputs the trace changed, so the serve is the one execution the…

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

为什么在扩散

来源