Skip to content

Commit

Permalink
Internal Code Change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 578569429
  • Loading branch information
anandolee authored and tensorflower-gardener committed Nov 1, 2023
1 parent 39c8a8c commit 91ce7b4
Show file tree
Hide file tree
Showing 11 changed files with 121 additions and 22 deletions.
25 changes: 20 additions & 5 deletions tensorflow_privacy/privacy/analysis/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ py_test(
srcs = ["compute_dp_sgd_privacy_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [":compute_dp_sgd_privacy_lib"],
deps = [
":compute_dp_sgd_privacy_lib",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)

py_binary(
Expand All @@ -44,7 +47,10 @@ py_library(
py_test(
name = "compute_noise_from_budget_test",
srcs = ["compute_noise_from_budget_test.py"],
deps = [":compute_noise_from_budget_lib"],
deps = [
":compute_noise_from_budget_lib",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)

py_library(
Expand All @@ -64,7 +70,10 @@ py_test(
srcs = ["tensor_buffer_eager_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [":tensor_buffer"],
deps = [
":tensor_buffer",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)

py_test(
Expand All @@ -73,7 +82,10 @@ py_test(
srcs = ["tensor_buffer_graph_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [":tensor_buffer"],
deps = [
":tensor_buffer",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)

py_library(
Expand All @@ -87,5 +99,8 @@ py_test(
srcs = ["tree_aggregation_accountant_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [":tree_aggregation_accountant"],
deps = [
":tree_aggregation_accountant",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)
32 changes: 28 additions & 4 deletions tensorflow_privacy/privacy/dp_query/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ py_test(
srcs = ["dp_query_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [":no_privacy_query"],
deps = [
":no_privacy_query",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)

py_library(
Expand All @@ -32,7 +35,10 @@ py_test(
srcs = ["discrete_gaussian_utils_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [":discrete_gaussian_utils"],
deps = [
":discrete_gaussian_utils",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)

py_library(
Expand All @@ -54,6 +60,7 @@ py_test(
":discrete_gaussian_query",
":discrete_gaussian_utils",
":test_utils",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)

Expand All @@ -76,6 +83,7 @@ py_test(
":discrete_gaussian_utils",
":distributed_discrete_gaussian_query",
":test_utils",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)

Expand All @@ -97,6 +105,7 @@ py_test(
deps = [
":distributed_skellam_query",
":test_utils",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)

Expand All @@ -116,6 +125,7 @@ py_test(
deps = [
":gaussian_query",
":test_utils",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)

Expand All @@ -135,6 +145,7 @@ py_test(
deps = [
":no_privacy_query",
":test_utils",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)

Expand All @@ -155,6 +166,7 @@ py_test(
":gaussian_query",
":normalized_query",
":test_utils",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)

Expand All @@ -177,6 +189,7 @@ py_test(
":nested_query",
":normalized_query",
":test_utils",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)

Expand All @@ -199,6 +212,7 @@ py_test(
deps = [
":quantile_adaptive_clip_sum_query",
":test_utils",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)

Expand All @@ -223,6 +237,7 @@ py_test(
deps = [
":quantile_estimator_query",
":test_utils",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)

Expand All @@ -244,7 +259,10 @@ py_test(
python_version = "PY3",
shard_count = 10,
srcs_version = "PY3",
deps = [":tree_aggregation"],
deps = [
":tree_aggregation",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)

py_test(
Expand All @@ -257,6 +275,7 @@ py_test(
":test_utils",
":tree_aggregation",
":tree_aggregation_query",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)

Expand Down Expand Up @@ -286,7 +305,10 @@ py_test(
srcs = ["tree_range_query_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [":tree_range_query"],
deps = [
":tree_range_query",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)

py_test(
Expand All @@ -297,6 +319,7 @@ py_test(
deps = [
":restart_query",
":tree_aggregation_query",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)

Expand Down Expand Up @@ -328,5 +351,6 @@ py_test(
deps = [
":quantile_adaptive_clip_tree_query",
":test_utils",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)
4 changes: 4 additions & 0 deletions tensorflow_privacy/privacy/estimators/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ py_test(
":binary_class_head",
":test_utils",
"//tensorflow_privacy/privacy/optimizers:dp_optimizer_keras",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)

Expand All @@ -85,6 +86,7 @@ py_test(
":multi_class_head",
":test_utils",
"//tensorflow_privacy/privacy/optimizers:dp_optimizer_keras",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)

Expand All @@ -98,6 +100,7 @@ py_test(
":multi_label_head",
":test_utils",
"//tensorflow_privacy/privacy/optimizers:dp_optimizer_keras",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)

Expand All @@ -111,5 +114,6 @@ py_test(
":dnn",
":test_utils",
"//tensorflow_privacy/privacy/optimizers:dp_optimizer_keras",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)
3 changes: 3 additions & 0 deletions tensorflow_privacy/privacy/estimators/v1/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ py_test(
":head",
"//tensorflow_privacy/privacy/estimators:test_utils",
"//tensorflow_privacy/privacy/optimizers:dp_optimizer",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)

Expand All @@ -56,6 +57,7 @@ py_test(
":dnn",
"//tensorflow_privacy/privacy/estimators:test_utils",
"//tensorflow_privacy/privacy/optimizers:dp_optimizer",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)

Expand All @@ -69,5 +71,6 @@ py_test(
":linear",
"//tensorflow_privacy/privacy/estimators:test_utils",
"//tensorflow_privacy/privacy/optimizers:dp_optimizer",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)
2 changes: 2 additions & 0 deletions tensorflow_privacy/privacy/fast_gradient_clipping/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ py_test(
deps = [
":gradient_clipping_utils",
":type_aliases",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)

Expand Down Expand Up @@ -78,5 +79,6 @@ py_test(
":common_test_utils",
":layer_registry",
":type_aliases",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)
2 changes: 2 additions & 0 deletions tensorflow_privacy/privacy/keras_models/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ py_test(
deps = [
"//tensorflow_privacy/privacy/fast_gradient_clipping:layer_registry",
"//tensorflow_privacy/privacy/keras_models:dp_keras_model",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)

Expand All @@ -38,5 +39,6 @@ py_test(
deps = [
":dp_keras_model",
"//tensorflow_privacy/privacy/fast_gradient_clipping:layer_registry",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)
7 changes: 6 additions & 1 deletion tensorflow_privacy/privacy/logistic_regression/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ py_test(
":datasets",
":multinomial_logistic",
"//tensorflow_privacy/privacy/analysis:compute_dp_sgd_privacy_lib",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)

Expand All @@ -45,7 +46,10 @@ py_test(
python_version = "PY3",
srcs_version = "PY3",
tags = ["requires-net:external"],
deps = [":datasets"],
deps = [
":datasets",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)

py_library(
Expand All @@ -64,5 +68,6 @@ py_test(
deps = [
":datasets",
":single_layer_softmax",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)
23 changes: 19 additions & 4 deletions tensorflow_privacy/privacy/optimizers/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ py_test(
srcs = ["clip_and_aggregate_gradients_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [":clip_and_aggregate_gradients"],
deps = [
":clip_and_aggregate_gradients",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)

py_test(
Expand All @@ -95,6 +98,7 @@ py_test(
deps = [
":dp_optimizer",
"//tensorflow_privacy/privacy/dp_query:gaussian_query",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)

Expand All @@ -104,7 +108,10 @@ py_test(
srcs = ["dp_optimizer_keras_sparse_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [":dp_optimizer_keras_sparse"],
deps = [
":dp_optimizer_keras_sparse",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)

py_test(
Expand All @@ -113,7 +120,10 @@ py_test(
srcs = ["dp_optimizer_keras_sparse_distributed_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [":dp_optimizer_keras_sparse"],
deps = [
":dp_optimizer_keras_sparse",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)

py_test(
Expand All @@ -122,7 +132,10 @@ py_test(
srcs = ["dp_optimizer_vectorized_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [":dp_optimizer_vectorized"],
deps = [
":dp_optimizer_vectorized",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)

py_test(
Expand All @@ -134,6 +147,7 @@ py_test(
deps = [
":dp_optimizer",
"//tensorflow_privacy/privacy/dp_query:gaussian_query",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)

Expand All @@ -146,5 +160,6 @@ py_test(
deps = [
":dp_optimizer_keras",
":dp_optimizer_keras_vectorized",
"//third_party/py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip
],
)
Loading

0 comments on commit 91ce7b4

Please sign in to comment.