-
Notifications
You must be signed in to change notification settings - Fork 434
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]`. PiperOrigin-RevId: 694580468
- Loading branch information
1 parent
b8ec2c4
commit 7febd1c
Showing
3 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters