trunk/37f98dafc00455cd64e7c3beea86c035ae5e6bee: [precompile] Apply a make_fx capture's in-place updates once (#198243)
- PyTorch 近 90 天出现 1408 次
- PyTorch 近 90 天第 1390 次发版
- 上一次:同一天稍早 · ciflow/trunk/198434
发生了什么
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…
摘要按规则整理自下方来源原文