tf_privacy.v1.make_optimizer_class

Given a subclass of tf.compat.v1.train.Optimizer, returns a DP-SGD subclass of it.

cls Class from which to derive a DP subclass. Should be a subclass of tf.compat.v1.train.Optimizer.

A DP-SGD subclass of cls.