Skip to content

Conversation

@copybara-service
Copy link

@copybara-service copybara-service bot commented Jan 28, 2026

Add two canonicalization pattern for AllReduce.

1. all-reduce(sharded-to-unreduced(x, axes), flattened_axes) = all-gather(x, axes)
2. all-reduce(replicated-to-unreduced(x, axes), axes) = x

This pattern is from the definition of the sharded-to-unreduced and replicated-to-unreduced.

```
1. all-reduce(sharded-to-unreduced(x, axes), flattened_axes) = all-gather(x, axes)
2. all-reduce(replicated-to-unreduced(x, axes), axes) = x
```

This pattern is from the definition of the sharded-to-unreduced and replicated-to-unreduced.

PiperOrigin-RevId: 861974180
@copybara-service copybara-service bot merged commit 7b73b49 into main Jan 28, 2026
@copybara-service copybara-service bot deleted the test_861937024 branch January 28, 2026 02:35
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