Skip to content

Add NamedSharding support to GatherScatterOperandsShardedAcrossParallelDims.#40364

Open
copybara-service[bot] wants to merge 1 commit intomainfrom
test_892847147
Open

Add NamedSharding support to GatherScatterOperandsShardedAcrossParallelDims.#40364
copybara-service[bot] wants to merge 1 commit intomainfrom
test_892847147

Conversation

@copybara-service
Copy link
Copy Markdown

Add NamedSharding support to GatherScatterOperandsShardedAcrossParallelDims.

This change introduces a new helper function to handle NamedSharding in GatherScatterOperandsShardedAcrossParallelDims. When both the operand and indices use NamedSharding, this function attempts to align the sharding of parallel dimensions. If one dimension is sharded and the corresponding parallel dimension is replicated, it will propagate the sharding to the replicated dimension if the sharding axes are available.

…allelDims`.

This change introduces a new helper function to handle `NamedSharding` in `GatherScatterOperandsShardedAcrossParallelDims`. When both the operand and indices use `NamedSharding`, this function attempts to align the sharding of parallel dimensions. If one dimension is sharded and the corresponding parallel dimension is replicated, it will propagate the sharding to the replicated dimension if the sharding axes are available.

PiperOrigin-RevId: 892847147
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.

0 participants