privacy icon indicating copy to clipboard operation
privacy copied to clipboard

Changes `DPOptimizerClass` to generically accept and use any `dp_sum_query`.

Open copybara-service[bot] opened this issue 2 years ago • 0 comments

Changes DPOptimizerClass to generically accept and use any dp_sum_query.

This enables creation of generic DPOptimizers by user's passing queries. The most common Gaussian query is automatically performed for convenience and backwards compatibility.

Byproducts of this update: -ensures consistent implementations between the internal (and legacy) get_gradients and newer _compute_gradients for all queries. -refactors for python readability.

copybara-service[bot] avatar Aug 12 '22 01:08 copybara-service[bot]