Skip to content

Fix sample weight generation in MIA tests and add test sharding to single_layer_softmax_test. - #648

Open
copybara-service[bot] wants to merge 1 commit into
masterfrom
cl/967247763
Open

Fix sample weight generation in MIA tests and add test sharding to single_layer_softmax_test.#648
copybara-service[bot] wants to merge 1 commit into
masterfrom
cl/967247763

Conversation

@copybara-service

Copy link
Copy Markdown

Fix sample weight generation in MIA tests and add test sharding to single_layer_softmax_test.

  • Fix MIA sample weight generation: Replace rng.randn with rng.rand in membership_inference_attack_test.py to ensure non-negative sample weights required by RandomForestClassifier's bootstrap sampling logic.
  • Add sharding to single_layer_softmax_test: Migrate to absltest and set shard_count = 4 in the BUILD file to execute parameterized test cases in parallel and reduce test runtime.

@copybara-service
copybara-service Bot force-pushed the cl/967247763 branch 4 times, most recently from 92f98f3 to 8568b49 Compare August 19, 2026 17:39
…ngle_layer_softmax_test.

* Fix MIA sample weight generation: Replace `rng.randn` with `rng.rand` in `membership_inference_attack_test.py` to ensure non-negative sample weights required by `RandomForestClassifier`'s bootstrap sampling logic.
* Add sharding to `single_layer_softmax_test`: Migrate to `absltest` and set `shard_count = 4` in the BUILD file to execute parameterized test cases in parallel and reduce test runtime.

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