← Back to events
ActiveAIRelease

trunk/302f29e957bd44cd3ac34cbbddf4de25381d99ac: [HOP] Support input-input aliasing for scan (#199688)

Photo: PyTorch Releases

What happened

Enables input-input aliasing for the scan HOP: combine_fn may now take several inputs that are views of one storage, e.g. K and V split from a fused QKV projection. Such calls were rejected before, so the caller had to clone. Aliased inputs are accepted as long as none of the inputs sharing that storage is mutated: functionalization treats subgraph inputs as independent, so a write to one view would not be observed…

Summary assembled by rule from the sources below

Why it's spreading

Sources