Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PropagateShardingAlongDimsAndReplicateOthers and expose it as a public util function. #19825

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

copybara-service[bot]
Copy link

Fix PropagateShardingAlongDimsAndReplicateOthers and expose it as a public util function.

The original description is correct, while the implementation is wrong. Given the following input

source_sharding = {devices=[2,3,5,7,11]<=[2310]}
source_dims = [2, 4, 1]
target_dims = [2, 1, 3]
target_shape_rank = 5

The result shoule be {devices=[1,11,5,3,1,14]<=[2,3,5,7,11]T(4,2,1,0,3) last_tile_dim_replicate}.

… public util function.

The original description is correct, while the implementation is wrong. Given the following input
```
source_sharding = {devices=[2,3,5,7,11]<=[2310]}
source_dims = [2, 4, 1]
target_dims = [2, 1, 3]
target_shape_rank = 5
```
The result shoule be `{devices=[1,11,5,3,1,14]<=[2,3,5,7,11]T(4,2,1,0,3) last_tile_dim_replicate}`.
PiperOrigin-RevId: 700267707
@copybara-service copybara-service bot merged commit 626f1d2 into main Nov 26, 2024
@copybara-service copybara-service bot deleted the test_700205556 branch November 26, 2024 10:26
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