Skip to content

Commit

Permalink
WILL BE REMOVED. DO NOT SUBMIT.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 562832706
  • Loading branch information
tensorflower-gardener committed Sep 6, 2023
1 parent c92610e commit a49369f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensorflow_privacy/privacy/dp_query/normalized_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def get_noised_result(self, sample_state, global_state):
sample_state, global_state.numerator_state)

def normalize(v):
return tf.truediv(v, global_state.denominator)
return tf.truediv(v, tf.cast(global_state.denominator, v.dtype))

# The denominator is constant so the privacy cost comes from the numerator.
return (tf.nest.map_structure(normalize, noised_sum),
Expand Down

0 comments on commit a49369f

Please sign in to comment.