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

Fix a bug where full and use_mesh outside jit did not work because the shard passed to make_array_from_callback was sharded on all devices instead of just 1 device. #27076

Merged
merged 1 commit into from
Mar 11, 2025

Conversation

copybara-service[bot]
Copy link

Fix a bug where full and use_mesh outside jit did not work because the shard passed to make_array_from_callback was sharded on all devices instead of just 1 device.

This is because convert_element_type returning an output on all devices of the mesh because of the surrounding use_mesh context.

@copybara-service copybara-service bot force-pushed the test_735894275 branch 3 times, most recently from ecf5a02 to 06a4bee Compare March 11, 2025 22:11
…e the `shard` passed to `make_array_from_callback` was sharded on all devices instead of just 1 device.

This is because `convert_element_type` returning an output on all devices of the mesh because of the surrounding `use_mesh` context.

PiperOrigin-RevId: 735909962
@copybara-service copybara-service bot merged commit f45cbf3 into main Mar 11, 2025
1 of 2 checks passed
@copybara-service copybara-service bot deleted the test_735894275 branch March 11, 2025 22:25
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