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

Optimize collective_permute source_target_pairs size == 0 lowering #2406

Open
tapspatel opened this issue Mar 7, 2025 · 0 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@tapspatel
Copy link
Collaborator

Similar to this issue in all_gather where we replace replica_groups size = 1 with a noop, for the case of collective_permute, when we get a source_target_pairs with size = 0, we need to also convert that into a nop, as that means no tensor data is moving from any device, and converting it into a noop won't change the semantic meaning of the graph.

This is blocked by this PR: #2405

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants