From 0c2747462f2eab77aa52bf24851798c1120314b0 Mon Sep 17 00:00:00 2001 From: Shuang Song Date: Mon, 23 Mar 2020 17:40:58 -0700 Subject: [PATCH] Internal change. PiperOrigin-RevId: 302557220 --- tensorflow_privacy/privacy/dp_query/BUILD | 10 +++++----- .../dp_query/quantile_adaptive_clip_sum_query_test.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tensorflow_privacy/privacy/dp_query/BUILD b/tensorflow_privacy/privacy/dp_query/BUILD index 7118089..1f1e812 100644 --- a/tensorflow_privacy/privacy/dp_query/BUILD +++ b/tensorflow_privacy/privacy/dp_query/BUILD @@ -26,7 +26,7 @@ py_test( name = "gaussian_query_test", size = "small", srcs = ["gaussian_query_test.py"], - python_version = "PY2", + python_version = "PY3", deps = [ ":gaussian_query", ":test_utils", @@ -52,7 +52,7 @@ py_test( name = "no_privacy_query_test", size = "small", srcs = ["no_privacy_query_test.py"], - python_version = "PY2", + python_version = "PY3", deps = [ ":no_privacy_query", ":test_utils", @@ -76,7 +76,7 @@ py_test( name = "normalized_query_test", size = "small", srcs = ["normalized_query_test.py"], - python_version = "PY2", + python_version = "PY3", deps = [ ":gaussian_query", ":normalized_query", @@ -100,7 +100,7 @@ py_test( name = "nested_query_test", size = "small", srcs = ["nested_query_test.py"], - python_version = "PY2", + python_version = "PY3", deps = [ ":gaussian_query", ":nested_query", @@ -127,7 +127,7 @@ py_library( py_test( name = "quantile_adaptive_clip_sum_query_test", srcs = ["quantile_adaptive_clip_sum_query_test.py"], - python_version = "PY2", + python_version = "PY3", deps = [ ":quantile_adaptive_clip_sum_query", ":test_utils", diff --git a/tensorflow_privacy/privacy/dp_query/quantile_adaptive_clip_sum_query_test.py b/tensorflow_privacy/privacy/dp_query/quantile_adaptive_clip_sum_query_test.py index ebab03a..033be71 100644 --- a/tensorflow_privacy/privacy/dp_query/quantile_adaptive_clip_sum_query_test.py +++ b/tensorflow_privacy/privacy/dp_query/quantile_adaptive_clip_sum_query_test.py @@ -80,7 +80,7 @@ class QuantileAdaptiveClipSumQueryTest( expected_num_records=2.0) noised_sums = [] - for _ in xrange(1000): + for _ in range(1000): query_result, _ = test_utils.run_query(query, [record1, record2]) noised_sums.append(query_result.numpy())