forked from 626_privacy/tensorflow_privacy
Setting correct argument in super() call in DPOptimizerClass.
PiperOrigin-RevId: 308776729
This commit is contained in:
parent
9259ccb3d8
commit
319bf81bb1
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ def make_optimizer_class(cls):
|
||||||
|
|
||||||
def process_microbatch(i, sample_state):
|
def process_microbatch(i, sample_state):
|
||||||
"""Process one microbatch (record) with privacy helper."""
|
"""Process one microbatch (record) with privacy helper."""
|
||||||
grads, _ = zip(*super(cls, self).compute_gradients(
|
grads, _ = zip(*super(DPOptimizerClass, self).compute_gradients(
|
||||||
tf.reduce_mean(input_tensor=tf.gather(
|
tf.reduce_mean(input_tensor=tf.gather(
|
||||||
microbatches_losses, [i])), var_list, gate_gradients,
|
microbatches_losses, [i])), var_list, gate_gradients,
|
||||||
aggregation_method, colocate_gradients_with_ops, grad_loss))
|
aggregation_method, colocate_gradients_with_ops, grad_loss))
|
||||||
|
|
Loading…
Reference in a new issue