Skip to content

Introduce manual_type: ManualAxisType parameter on ShapedArray to track varying/unreduced/reduced and remove vma: frozenset parameter.#5339

Merged
copybara-service[bot] merged 1 commit intomainfrom
test_881114175
Mar 18, 2026

Conversation

@copybara-service
Copy link
Copy Markdown

@copybara-service copybara-service bot commented Mar 16, 2026

Introduce manual_type: ManualAxisType parameter on ShapedArray to track varying/unreduced/reduced and remove vma: frozenset parameter.

aval.vma will still exist as a property for backwards compatibility but aval.manual_type.varying is it's equivalent.

Why do this?

Currently, unreduced/reduced on PartitionSpec talk about both Explicit/Manual axes but this makes the implementation and mental model way too complex.

So instead, ManualType will track all manual stuff like varying, unreduced and reduced and PartitionSpec will only talk about explicit sharded, unreduced and reduced.

@copybara-service copybara-service bot changed the title unreduced/reduced in ShapedArray, NamedSharding can only talk about Explicit axes. Introduce manual_type: ManualAxisType parameter on ShapedArray to track varying/unreduced/reduced and remove vma: frozenset parameter. Mar 18, 2026
@copybara-service copybara-service bot force-pushed the test_881114175 branch 4 times, most recently from 8f7dd57 to affb2d6 Compare March 18, 2026 02:54
…rack varying/unreduced/reduced and remove `vma: frozenset` parameter.

`aval.vma` will still exist as a property for backwards compatibility but `aval.manual_type.varying` is it's equivalent.

**Why do this?**

Currently, unreduced/reduced on PartitionSpec talk about both Explicit/Manual axes but this makes the implementation and mental model way too complex.

So instead, `ManualType` will track all manual stuff like varying, unreduced and reduced and `PartitionSpec` will only talk about explicit sharded, unreduced and reduced.

PiperOrigin-RevId: 885334667
@copybara-service copybara-service bot merged commit 4ba66fc into main Mar 18, 2026
@copybara-service copybara-service bot deleted the test_881114175 branch March 18, 2026 02:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant