View source on GitHub |
Returns a differentially private (DP) subclass of cls
.
tf_privacy.make_keras_generic_optimizer_class(
cls: Type[tf.keras.optimizers.Optimizer]
)
Args | |
---|---|
cls
|
Class from which to derive a DP subclass. Should be a subclass of
tf.keras.optimizers.legacy.Optimizer .
|
Returns | |
---|---|
A generic DP-SGD subclass of cls , compatible with many DP queries.
|