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

Update partitioning method for gather/scatter along implicit batch dimensions. #20097

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

copybara-service[bot]
Copy link

Update partitioning method for gather/scatter along implicit batch dimensions.

We first use GatherScatterOperandsShardedAcrossParallelDims to obtain the shardings for operands and indices. We can use the new indices sharding to infer the output sharding (incl. expliict/implicit batch dims and indices pass-through dims). Previously, we only consider expliict batch dims and indices pass-through dims.

This cl impacts the implicit batch dims only, without impact on explicit batch dims.

…mensions.

We first use `GatherScatterOperandsShardedAcrossParallelDims` to obtain the shardings for operands and indices. We can use the new indices sharding to infer the output sharding (incl. expliict/implicit batch dims and indices pass-through dims). Previously, we only consider expliict batch dims and indices pass-through dims.

This cl impacts the implicit batch dims only, without impact on explicit batch dims.

PiperOrigin-RevId: 702699803
@copybara-service copybara-service bot merged commit dad8d04 into main Dec 4, 2024
@copybara-service copybara-service bot deleted the test_702444401 branch December 4, 2024 14:21
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