Skip to content

Add all_gather_invariant to lax. #29408

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

Merged
merged 1 commit into from
Jun 12, 2025
Merged

Add all_gather_invariant to lax. #29408

merged 1 commit into from
Jun 12, 2025

Conversation

copybara-service[bot]
Copy link

Add all_gather_invariant to lax.

all_gather_invariant differs from all_gather in the following ways:

  • all_gather_invariant is Varying -> Invariant. For example:
    out: f32[8] = all_gather_invariant(inp: f32[4]{V: x}, 'x') where the size of mesh axis x is 2. While all_gather is Varying -> Varying.

  • all_gather_invariant transposes to dynamic_slice which is Invariant -> Varying. While all_gather transposes to reduce_scatter which is Varying -> Varying.

@copybara-service copybara-service bot force-pushed the test_769972415 branch 5 times, most recently from 676e4db to 9ef8877 Compare June 12, 2025 19:00
`all_gather_invariant` differs from `all_gather` in the following ways:

* `all_gather_invariant` is `Varying -> Invariant`. For example:
  `out: f32[8] = all_gather_invariant(inp: f32[4]{V: x}, 'x')` where the size of mesh axis `x` is `2`. While `all_gather` is `Varying -> Varying`.

* `all_gather_invariant` transposes to `dynamic_slice` which is `Invariant -> Varying`. While `all_gather` transposes to `reduce_scatter` which is `Varying -> Varying`.

PiperOrigin-RevId: 770746712
@copybara-service copybara-service bot merged commit 6e2977d into main Jun 12, 2025
1 check was pending
@copybara-service copybara-service bot deleted the test_769972415 branch June 12, 2025 19:02
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