jax
275e13ac - Support collectives in the reshape partitioning rule.

Commit
21 days ago
Support collectives in the reshape partitioning rule. Explicit-sharding `reshape` propagation permits axis merges that require cross-device communication (such as `f32[4@x, 4@y] -> f32[16@(x, y)]`), whereas `_reshape_collective_rule` previously raised `NotImplementedError` whenever a reshape required collectives or specified an `out_sharding` that differed from zero-communication propagation. The reshape partitioning rule reuses the reshard partitioning logic by creating a reshard plan (in_collective, out_collective) and then executes it. PiperOrigin-RevId: 1016347458
Author
Parents
Loading