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 a unit test for insert-explicit-reshards pass for stablehlo.reverse. #287

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

copybara-service[bot]
Copy link

Add a unit test for insert-explicit-reshards pass for stablehlo.reverse.

stablehlo.reverse is a special operation in that it adds collective permute during partitioning. Yet, at least for the non-reversing dimensions, a conflict resolution is still needed. This unit test verifies that explicit reshards are added for conflict resolution.

That said, for reversing dimensions, there possibly is room to handle conflict resolution more efficiently, which is not in the scope of this CL.

stablehlo.reverse is a special operation in that it adds collective permute during partitioning. Yet, at least for the non-reversing dimensions, a conflict resolution is still needed. This unit test verifies that explicit reshards are added for conflict resolution.

That said, for reversing dimensions, there possibly is room to handle conflict resolution more efficiently, which is not in the scope of this CL.

PiperOrigin-RevId: 712469397
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