forked from 626_privacy/tensorflow_privacy
Minor fix regarding tf.compat.v1 in mnist_dpsgd_tutorial_vectorized.
PiperOrigin-RevId: 303379200
This commit is contained in:
parent
0c2747462f
commit
7647c54a27
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ def cnn_model_fn(features, labels, mode):
|
|||
else:
|
||||
optimizer = GradientDescentOptimizer(learning_rate=FLAGS.learning_rate)
|
||||
opt_loss = scalar_loss
|
||||
global_step = tf.compat.get_global_step()
|
||||
global_step = tf.train.get_global_step()
|
||||
train_op = optimizer.minimize(loss=opt_loss, global_step=global_step)
|
||||
# In the following, we pass the mean of the loss (scalar_loss) rather than
|
||||
# the vector_loss because tf.estimator requires a scalar loss. This is only
|
||||
|
|
Loading…
Reference in a new issue