← Back to events
ActiveAIRelease

trunk/96c5e78ddd4918fab2bb4c795bde7fbcb1241d76: Avoid folding mutated buffer storages (#185077)

What happened

AOTInductor packages unlift exported module buffers into runtime-owned constants. For buffer mutation, export re-inserts a copy_ from the functional mutation output back into that buffer. The uniform-value constant folder could fold a singleton get_attr buffer into a compile-time full(...) value before that copy_, so generated packages wrote the same compile-time value into the buffer on every call. Loaded packages…

Summary assembled by rule from the sources below

Why it's spreading

Timeline

  1. First appeared on PyTorch ReleasesPyTorch Releases

Sources