Passes number of microbatches to DP model.

PiperOrigin-RevId: 512678620
This commit is contained in:
Shuang Song 2023-02-27 11:11:27 -08:00 committed by A. Unique TensorFlower
parent 4a418e8862
commit a3e8a45559

View file

@ -113,7 +113,9 @@ def main(unused_argv):
model = DPSequential( model = DPSequential(
l2_norm_clip=FLAGS.l2_norm_clip, l2_norm_clip=FLAGS.l2_norm_clip,
noise_multiplier=FLAGS.noise_multiplier, noise_multiplier=FLAGS.noise_multiplier,
layers=layers) num_microbatches=FLAGS.microbatches,
layers=layers,
)
else: else:
model = tf.keras.Sequential(layers=layers) model = tf.keras.Sequential(layers=layers)