From bfba26801d0d4a18bcc543c847d8fbe162c7eee2 Mon Sep 17 00:00:00 2001 From: Nicolas Papernot Date: Thu, 21 Feb 2019 14:31:31 -0800 Subject: [PATCH] Closes #16 PiperOrigin-RevId: 235070241 --- tutorials/mnist_dpsgd_tutorial.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tutorials/mnist_dpsgd_tutorial.py b/tutorials/mnist_dpsgd_tutorial.py index 3cb288d..6282124 100644 --- a/tutorials/mnist_dpsgd_tutorial.py +++ b/tutorials/mnist_dpsgd_tutorial.py @@ -69,9 +69,10 @@ def cnn_model_fn(features, labels, mode): if mode == tf.estimator.ModeKeys.TRAIN: if FLAGS.dpsgd: - # Use DP version of GradientDescentOptimizer. For illustration purposes, - # we do that here by calling optimizer_from_args() explicitly, though DP - # versions of standard optimizers are available in dp_optimizer. + # Use DP version of GradientDescentOptimizer. Other optimizers are + # available in dp_optimizer. Most optimizers inheriting from + # tf.train.Optimizer should be wrappable in differentially private + # counterparts by calling dp_optimizer.optimizer_from_args(). optimizer = dp_optimizer.DPGradientDescentGaussianOptimizer( l2_norm_clip=FLAGS.l2_norm_clip, noise_multiplier=FLAGS.noise_multiplier,