trunk/302f29e957bd44cd3ac34cbbddf4de25381d99ac: [HOP] Support input-input aliasing for scan (#199688)
- PyTorch: 2035 events in the last 90 days
- PyTorch: 2008th Release in the last 90 days
- Previous: earlier the same day · ciflow/xpu/200223
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