forked from 626_privacy/tensorflow_privacy
Passes number of microbatches to DP model.
PiperOrigin-RevId: 512678620
This commit is contained in:
parent
4a418e8862
commit
a3e8a45559
1 changed files with 3 additions and 1 deletions
|
@ -113,7 +113,9 @@ def main(unused_argv):
|
|||
model = DPSequential(
|
||||
l2_norm_clip=FLAGS.l2_norm_clip,
|
||||
noise_multiplier=FLAGS.noise_multiplier,
|
||||
layers=layers)
|
||||
num_microbatches=FLAGS.microbatches,
|
||||
layers=layers,
|
||||
)
|
||||
else:
|
||||
model = tf.keras.Sequential(layers=layers)
|
||||
|
||||
|
|
Loading…
Reference in a new issue