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

Add hlo_sharding_util::MoveAndMergeShardingTiles. #19128

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

copybara-service[bot]
Copy link

Add hlo_sharding_util::MoveAndMergeShardingTiles.

Given a tiled sharding, move the tiles from source_dim and merge it into
target_dim. For example, given a sharding with tile assignment [a, b, c, d, e], source_dim = 1, target_dim = 3, the function will return a sharding with
tile assignment [a, 1, c, db, e].

Given a tiled sharding, move the tiles from source_dim and merge it into
target_dim. For example, given a sharding with tile assignment `[a, b, c, d,
e]`, source_dim = 1, target_dim = 3, the function will return a sharding with
tile assignment `[a, 1, c, db, e]`.

PiperOrigin-RevId: 694580468
@copybara-service copybara-service bot merged commit 7febd1c into main Nov 8, 2024
@copybara-service copybara-service bot deleted the test_693837865 branch November 8, 2024 19:45
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