tf_privacy.make_keras_generic_optimizer_class

Stay organized with collections Save and categorize content based on your preferences.

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.