Skip to content

Commit

Permalink
Remove srcs_version and python_version attributes, as they alread…
Browse files Browse the repository at this point in the history
…y default to `"PY3"`

PiperOrigin-RevId: 720930461
  • Loading branch information
oprypin authored and tensorflower-gardener committed Jan 29, 2025
1 parent cdd1663 commit 6993082
Show file tree
Hide file tree
Showing 18 changed files with 0 additions and 220 deletions.
2 changes: 0 additions & 2 deletions tensorflow_privacy/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ exports_files([
py_library(
name = "tensorflow_privacy",
srcs = ["__init__.py"],
srcs_version = "PY3",
deps = [
":version",
"//tensorflow_privacy/privacy/analysis:compute_dp_sgd_privacy_lib",
Expand Down Expand Up @@ -52,7 +51,6 @@ build_test(
py_library(
name = "version",
srcs = ["version.py"],
srcs_version = "PY3",
)

filegroup(
Expand Down
13 changes: 0 additions & 13 deletions tensorflow_privacy/privacy/analysis/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,11 @@ py_library(
py_library(
name = "compute_dp_sgd_privacy_lib",
srcs = ["compute_dp_sgd_privacy_lib.py"],
srcs_version = "PY3",
)

py_binary(
name = "compute_dp_sgd_privacy",
srcs = ["compute_dp_sgd_privacy.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [":compute_dp_sgd_privacy_lib"],
)

Expand All @@ -26,8 +23,6 @@ py_test(
size = "small",
timeout = "moderate",
srcs = ["compute_dp_sgd_privacy_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [":compute_dp_sgd_privacy_lib"],
)

Expand Down Expand Up @@ -56,37 +51,29 @@ py_library(
py_library(
name = "tensor_buffer",
srcs = ["tensor_buffer.py"],
srcs_version = "PY3",
)

py_test(
name = "tensor_buffer_eager_test",
size = "small",
srcs = ["tensor_buffer_eager_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [":tensor_buffer"],
)

py_test(
name = "tensor_buffer_graph_test",
size = "small",
srcs = ["tensor_buffer_graph_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [":tensor_buffer"],
)

py_library(
name = "tree_aggregation_accountant",
srcs = ["tree_aggregation_accountant.py"],
srcs_version = "PY3",
)

py_test(
name = "tree_aggregation_accountant_test",
srcs = ["tree_aggregation_accountant_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [":tree_aggregation_accountant"],
)
49 changes: 0 additions & 49 deletions tensorflow_privacy/privacy/dp_query/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -10,35 +10,28 @@ py_library(
py_library(
name = "dp_query",
srcs = ["dp_query.py"],
srcs_version = "PY3",
)

py_test(
name = "dp_query_test",
srcs = ["dp_query_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [":no_privacy_query"],
)

py_library(
name = "discrete_gaussian_utils",
srcs = ["discrete_gaussian_utils.py"],
srcs_version = "PY3",
)

py_test(
name = "discrete_gaussian_utils_test",
srcs = ["discrete_gaussian_utils_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [":discrete_gaussian_utils"],
)

py_library(
name = "discrete_gaussian_query",
srcs = ["discrete_gaussian_query.py"],
srcs_version = "PY3",
deps = [
":discrete_gaussian_utils",
":dp_query",
Expand All @@ -48,8 +41,6 @@ py_library(
py_test(
name = "discrete_gaussian_query_test",
srcs = ["discrete_gaussian_query_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":discrete_gaussian_query",
":discrete_gaussian_utils",
Expand All @@ -60,7 +51,6 @@ py_test(
py_library(
name = "distributed_discrete_gaussian_query",
srcs = ["distributed_discrete_gaussian_query.py"],
srcs_version = "PY3",
deps = [
":discrete_gaussian_utils",
":dp_query",
Expand All @@ -70,8 +60,6 @@ py_library(
py_test(
name = "distributed_discrete_gaussian_query_test",
srcs = ["distributed_discrete_gaussian_query_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":discrete_gaussian_utils",
":distributed_discrete_gaussian_query",
Expand All @@ -82,7 +70,6 @@ py_test(
py_library(
name = "distributed_skellam_query",
srcs = ["distributed_skellam_query.py"],
srcs_version = "PY3",
deps = [
":dp_query",
":normalized_query",
Expand All @@ -92,8 +79,6 @@ py_library(
py_test(
name = "distributed_skellam_query_test",
srcs = ["distributed_skellam_query_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":distributed_skellam_query",
":test_utils",
Expand All @@ -103,16 +88,13 @@ py_test(
py_library(
name = "gaussian_query",
srcs = ["gaussian_query.py"],
srcs_version = "PY3",
deps = [":dp_query"],
)

py_test(
name = "gaussian_query_test",
size = "small",
srcs = ["gaussian_query_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":gaussian_query",
":test_utils",
Expand All @@ -122,16 +104,13 @@ py_test(
py_library(
name = "no_privacy_query",
srcs = ["no_privacy_query.py"],
srcs_version = "PY3",
deps = [":dp_query"],
)

py_test(
name = "no_privacy_query_test",
size = "small",
srcs = ["no_privacy_query_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":no_privacy_query",
":test_utils",
Expand All @@ -141,16 +120,13 @@ py_test(
py_library(
name = "normalized_query",
srcs = ["normalized_query.py"],
srcs_version = "PY3",
deps = [":dp_query"],
)

py_test(
name = "normalized_query_test",
size = "small",
srcs = ["normalized_query_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":gaussian_query",
":normalized_query",
Expand All @@ -161,16 +137,13 @@ py_test(
py_library(
name = "nested_query",
srcs = ["nested_query.py"],
srcs_version = "PY3",
deps = [":dp_query"],
)

py_test(
name = "nested_query_test",
size = "small",
srcs = ["nested_query_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":dp_query",
":gaussian_query",
Expand All @@ -183,7 +156,6 @@ py_test(
py_library(
name = "quantile_adaptive_clip_sum_query",
srcs = ["quantile_adaptive_clip_sum_query.py"],
srcs_version = "PY3",
deps = [
":dp_query",
":gaussian_query",
Expand All @@ -194,8 +166,6 @@ py_library(
py_test(
name = "quantile_adaptive_clip_sum_query_test",
srcs = ["quantile_adaptive_clip_sum_query_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":quantile_adaptive_clip_sum_query",
":test_utils",
Expand All @@ -205,7 +175,6 @@ py_test(
py_library(
name = "quantile_estimator_query",
srcs = ["quantile_estimator_query.py"],
srcs_version = "PY3",
deps = [
":dp_query",
":gaussian_query",
Expand All @@ -218,8 +187,6 @@ py_library(
py_test(
name = "quantile_estimator_query_test",
srcs = ["quantile_estimator_query_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":quantile_estimator_query",
":test_utils",
Expand All @@ -229,30 +196,24 @@ py_test(
py_library(
name = "test_utils",
srcs = ["test_utils.py"],
srcs_version = "PY3",
)

py_library(
name = "tree_aggregation",
srcs = ["tree_aggregation.py"],
srcs_version = "PY3",
)

py_test(
name = "tree_aggregation_test",
srcs = ["tree_aggregation_test.py"],
python_version = "PY3",
shard_count = 10,
srcs_version = "PY3",
deps = [":tree_aggregation"],
)

py_test(
name = "tree_aggregation_query_test",
srcs = ["tree_aggregation_query_test.py"],
python_version = "PY3",
shard_count = 5,
srcs_version = "PY3",
deps = [
":test_utils",
":tree_aggregation",
Expand All @@ -263,7 +224,6 @@ py_test(
py_library(
name = "tree_aggregation_query",
srcs = ["tree_aggregation_query.py"],
srcs_version = "PY3",
deps = [
":dp_query",
":tree_aggregation",
Expand All @@ -273,7 +233,6 @@ py_library(
py_library(
name = "tree_range_query",
srcs = ["tree_range_query.py"],
srcs_version = "PY3",
deps = [
":distributed_discrete_gaussian_query",
":dp_query",
Expand All @@ -284,16 +243,12 @@ py_library(
py_test(
name = "tree_range_query_test",
srcs = ["tree_range_query_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [":tree_range_query"],
)

py_test(
name = "restart_query_test",
srcs = ["restart_query_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":restart_query",
":tree_aggregation_query",
Expand All @@ -303,14 +258,12 @@ py_test(
py_library(
name = "restart_query",
srcs = ["restart_query.py"],
srcs_version = "PY3",
deps = [":dp_query"],
)

py_library(
name = "quantile_adaptive_clip_tree_query",
srcs = ["quantile_adaptive_clip_tree_query.py"],
srcs_version = "PY3",
deps = [
":dp_query",
":quantile_estimator_query",
Expand All @@ -322,9 +275,7 @@ py_test(
name = "quantile_adaptive_clip_tree_query_test",
timeout = "long",
srcs = ["quantile_adaptive_clip_tree_query_test.py"],
python_version = "PY3",
shard_count = 5,
srcs_version = "PY3",
deps = [
":quantile_adaptive_clip_tree_query",
":test_utils",
Expand Down
Loading

0 comments on commit 6993082

Please sign in to comment.