tf_privacy.make_keras_generic_optimizer_class

Returns a differentially private (DP) subclass of cls.

cls Class from which to derive a DP subclass. Should be a subclass of tf.keras.optimizers.legacy.Optimizer.

A generic DP-SGD subclass of cls, compatible with many DP queries.