Skip to content

Conversation

@copybara-service
Copy link

#sdy Add all-to-all fusion canonicalization pattern.

Combine 2 sdy.all_to_alls into one if

  • The second a2a is the only user of the first.
  • The parameters of the two do not have overlapping dimensions.

More complicated cases such as chained all-to-alls will be handled in follow-up cls.

Combine 2 `sdy.all_to_all`s into one if
- The second a2a is the only user of the first.
- The parameters of the two do not have overlapping dimensions.

More complicated cases such as chained all-to-alls will be handled in follow-up cls.

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