trunk/37f98dafc00455cd64e7c3beea86c035ae5e6bee: [precompile] Apply a make_fx capture's in-place updates once (#198243)
- PyTorch: 1404 events in the last 90 days
- PyTorch: 1386th Release in the last 90 days
- Previous: earlier the same day · ciflow/trunk/198434
What happened
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…
Summary assembled by rule from the sources below