Skip to content

Commit 6c79a35

Browse files
WILL BE REMOVED. DO NOT SUBMIT.
PiperOrigin-RevId: 562848204
1 parent c92610e commit 6c79a35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: tensorflow_privacy/privacy/dp_query/normalized_query.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def get_noised_result(self, sample_state, global_state):
7373
sample_state, global_state.numerator_state)
7474

7575
def normalize(v):
76-
return tf.truediv(v, global_state.denominator)
76+
return tf.truediv(v, tf.cast(global_state.denominator, v.dtype))
7777

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

0 commit comments

Comments
 (0)