forked from 626_privacy/tensorflow_privacy
Fix python3 bug: range() is no longer list. From @carlini
PiperOrigin-RevId: 228237806
This commit is contained in:
parent
251d6298c6
commit
a7190fc1ed
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ def main(unused_argv):
|
|||
"""Computes epsilon value for given hyperparameters."""
|
||||
if FLAGS.noise_multiplier == 0.0:
|
||||
return float('inf')
|
||||
orders = [1 + x / 10. for x in range(1, 100)] + range(12, 64)
|
||||
orders = [1 + x / 10. for x in range(1, 100)] + list(range(12, 64))
|
||||
sampling_probability = FLAGS.batch_size / 60000
|
||||
rdp = compute_rdp(q=sampling_probability,
|
||||
noise_multiplier=FLAGS.noise_multiplier,
|
||||
|
|
Loading…
Reference in a new issue