Skip to main content

Module gradient

Module gradient 

Source
Expand description

Gradient operations for differential privacy.

Functionsยง

add_gaussian_noise
Add Gaussian noise to gradient
clip_gradient
Clip gradient to max norm (per-sample)
grad_norm
Compute L2 norm of gradient