Skip to content

Don't tolerate num_classes > kNumBaseClasses - #596

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_973710772
Aug 31, 2026
Merged

Don't tolerate num_classes > kNumBaseClasses#596
copybara-service[bot] merged 1 commit into
masterfrom
test_973710772

Conversation

@copybara-service

Copy link
Copy Markdown

Don't tolerate num_classes > kNumBaseClasses

The logic behind current silent trimming of size classes array is unclear.
I don't think it can lead to anything good/reasonable.
Fortunately, this logic does not kick in for any of the existing classes.
Replace silent trimming with loud failure.

@copybara-service
copybara-service Bot force-pushed the test_973710772 branch 2 times, most recently from 055c675 to a5ba60c Compare August 31, 2026 16:37
The logic behind current silent trimming of size classes array is unclear.
I don't think it can lead to anything good/reasonable.
Fortunately, this logic does not kick in for any of the existing classes.
Replace silent trimming with loud failure.

PiperOrigin-RevId: 973942307
@copybara-service
copybara-service Bot merged commit 31a8a0f into master Aug 31, 2026
1 check passed
@copybara-service
copybara-service Bot deleted the test_973710772 branch August 31, 2026 17:05
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