Skip to content

Conversation

@copybara-service
Copy link

[JAX SC] Refine ID dropping logic in SparseCore input preprocessing.

The logic for counting and dropping IDs based on max_ids_per_partition and max_unique_ids_per_partition during the sorting and grouping of COO tensors has been updated. The counters for total and unique IDs per partition are now incremented only when a new, non-duplicate ID is added, and checks for exceeding limits are performed before incrementing. This ensures more accurate enforcement of the capacity constraints. Test validation is updated to check these limits.

@copybara-service copybara-service bot force-pushed the test_822368695 branch 3 times, most recently from 837407c to 38ffa0c Compare October 22, 2025 22:49
The logic for counting and dropping IDs based on `max_ids_per_partition` and `max_unique_ids_per_partition` during the sorting and grouping of COO tensors has been updated. The counters for total and unique IDs per partition are now incremented only when a new, non-duplicate ID is added, and checks for exceeding limits are performed *before* incrementing. This ensures more accurate enforcement of the capacity constraints. Test validation is updated to check these limits.

PiperOrigin-RevId: 822771909
@copybara-service copybara-service bot merged commit dc889b6 into main Oct 22, 2025
@copybara-service copybara-service bot deleted the test_822368695 branch October 22, 2025 22:55
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