Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fea6447

Browse files
authored
Merge pull request tensorflow#4126 from npapernot/master
fix import errors and type error in numpy for the PATE implementation
2 parents 7f351c6 + cf60559 commit fea6447

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

research/differential_privacy/multiple_teachers/analysis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def main(unused_argv):
240240
counts_mat = np.zeros((n, 10)).astype(np.int32)
241241
for i in range(n):
242242
for j in range(num_teachers):
243-
counts_mat[i, input_mat[j, i]] += 1
243+
counts_mat[i, int(input_mat[j, i])] += 1
244244
n = counts_mat.shape[0]
245245
num_examples = min(n, FLAGS.max_examples)
246246

0 commit comments

Comments
 (0)