forked from 626_privacy/tensorflow_privacy
Internal change.
PiperOrigin-RevId: 551648705
This commit is contained in:
parent
134c898ded
commit
67c9c2424c
4 changed files with 10 additions and 51 deletions
|
@ -13,7 +13,6 @@ py_library(
|
||||||
name = "compute_dp_sgd_privacy_lib",
|
name = "compute_dp_sgd_privacy_lib",
|
||||||
srcs = ["compute_dp_sgd_privacy_lib.py"],
|
srcs = ["compute_dp_sgd_privacy_lib.py"],
|
||||||
srcs_version = "PY3",
|
srcs_version = "PY3",
|
||||||
deps = ["@com_google_differential_py//dp_accounting:accounting"],
|
|
||||||
)
|
)
|
||||||
|
|
||||||
py_binary(
|
py_binary(
|
||||||
|
@ -42,7 +41,6 @@ py_binary(
|
||||||
py_library(
|
py_library(
|
||||||
name = "compute_noise_from_budget_lib",
|
name = "compute_noise_from_budget_lib",
|
||||||
srcs = ["compute_noise_from_budget_lib.py"],
|
srcs = ["compute_noise_from_budget_lib.py"],
|
||||||
deps = ["@com_google_differential_py//dp_accounting:accounting"],
|
|
||||||
)
|
)
|
||||||
|
|
||||||
py_test(
|
py_test(
|
||||||
|
@ -84,7 +82,6 @@ py_library(
|
||||||
name = "tree_aggregation_accountant",
|
name = "tree_aggregation_accountant",
|
||||||
srcs = ["tree_aggregation_accountant.py"],
|
srcs = ["tree_aggregation_accountant.py"],
|
||||||
srcs_version = "PY3",
|
srcs_version = "PY3",
|
||||||
deps = ["@com_google_differential_py//dp_accounting:accounting"],
|
|
||||||
)
|
)
|
||||||
|
|
||||||
py_test(
|
py_test(
|
||||||
|
@ -92,8 +89,5 @@ py_test(
|
||||||
srcs = ["tree_aggregation_accountant_test.py"],
|
srcs = ["tree_aggregation_accountant_test.py"],
|
||||||
python_version = "PY3",
|
python_version = "PY3",
|
||||||
srcs_version = "PY3",
|
srcs_version = "PY3",
|
||||||
deps = [
|
deps = [":tree_aggregation_accountant"],
|
||||||
":tree_aggregation_accountant",
|
|
||||||
"@com_google_differential_py//dp_accounting:accounting",
|
|
||||||
],
|
|
||||||
)
|
)
|
||||||
|
|
|
@ -44,7 +44,6 @@ py_library(
|
||||||
deps = [
|
deps = [
|
||||||
":discrete_gaussian_utils",
|
":discrete_gaussian_utils",
|
||||||
":dp_query",
|
":dp_query",
|
||||||
"@com_google_differential_py//dp_accounting:accounting",
|
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -67,7 +66,6 @@ py_library(
|
||||||
deps = [
|
deps = [
|
||||||
":discrete_gaussian_utils",
|
":discrete_gaussian_utils",
|
||||||
":dp_query",
|
":dp_query",
|
||||||
"@com_google_differential_py//dp_accounting:accounting",
|
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -90,7 +88,6 @@ py_library(
|
||||||
deps = [
|
deps = [
|
||||||
":dp_query",
|
":dp_query",
|
||||||
":normalized_query",
|
":normalized_query",
|
||||||
"@com_google_differential_py//dp_accounting:accounting",
|
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -109,10 +106,7 @@ py_library(
|
||||||
name = "gaussian_query",
|
name = "gaussian_query",
|
||||||
srcs = ["gaussian_query.py"],
|
srcs = ["gaussian_query.py"],
|
||||||
srcs_version = "PY3",
|
srcs_version = "PY3",
|
||||||
deps = [
|
deps = [":dp_query"],
|
||||||
":dp_query",
|
|
||||||
"@com_google_differential_py//dp_accounting:accounting",
|
|
||||||
],
|
|
||||||
)
|
)
|
||||||
|
|
||||||
py_test(
|
py_test(
|
||||||
|
@ -131,10 +125,7 @@ py_library(
|
||||||
name = "no_privacy_query",
|
name = "no_privacy_query",
|
||||||
srcs = ["no_privacy_query.py"],
|
srcs = ["no_privacy_query.py"],
|
||||||
srcs_version = "PY3",
|
srcs_version = "PY3",
|
||||||
deps = [
|
deps = [":dp_query"],
|
||||||
":dp_query",
|
|
||||||
"@com_google_differential_py//dp_accounting:accounting",
|
|
||||||
],
|
|
||||||
)
|
)
|
||||||
|
|
||||||
py_test(
|
py_test(
|
||||||
|
@ -173,10 +164,7 @@ py_library(
|
||||||
name = "nested_query",
|
name = "nested_query",
|
||||||
srcs = ["nested_query.py"],
|
srcs = ["nested_query.py"],
|
||||||
srcs_version = "PY3",
|
srcs_version = "PY3",
|
||||||
deps = [
|
deps = [":dp_query"],
|
||||||
":dp_query",
|
|
||||||
"@com_google_differential_py//dp_accounting:accounting",
|
|
||||||
],
|
|
||||||
)
|
)
|
||||||
|
|
||||||
py_test(
|
py_test(
|
||||||
|
@ -202,7 +190,6 @@ py_library(
|
||||||
":dp_query",
|
":dp_query",
|
||||||
":gaussian_query",
|
":gaussian_query",
|
||||||
":quantile_estimator_query",
|
":quantile_estimator_query",
|
||||||
"@com_google_differential_py//dp_accounting:accounting",
|
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -282,7 +269,6 @@ py_library(
|
||||||
deps = [
|
deps = [
|
||||||
":dp_query",
|
":dp_query",
|
||||||
":tree_aggregation",
|
":tree_aggregation",
|
||||||
"@com_google_differential_py//dp_accounting:accounting",
|
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -294,7 +280,6 @@ py_library(
|
||||||
":distributed_discrete_gaussian_query",
|
":distributed_discrete_gaussian_query",
|
||||||
":dp_query",
|
":dp_query",
|
||||||
":gaussian_query",
|
":gaussian_query",
|
||||||
"@com_google_differential_py//dp_accounting:accounting",
|
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -332,7 +317,6 @@ py_library(
|
||||||
":dp_query",
|
":dp_query",
|
||||||
":quantile_estimator_query",
|
":quantile_estimator_query",
|
||||||
":tree_aggregation_query",
|
":tree_aggregation_query",
|
||||||
"@com_google_differential_py//dp_accounting:accounting",
|
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,6 @@ py_library(
|
||||||
":datasets",
|
":datasets",
|
||||||
":single_layer_softmax",
|
":single_layer_softmax",
|
||||||
"//tensorflow_privacy/privacy/optimizers:dp_optimizer_keras",
|
"//tensorflow_privacy/privacy/optimizers:dp_optimizer_keras",
|
||||||
"@com_google_differential_py//dp_accounting:accounting",
|
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -25,10 +25,7 @@ py_binary(
|
||||||
srcs = ["mnist_dpsgd_tutorial_eager.py"],
|
srcs = ["mnist_dpsgd_tutorial_eager.py"],
|
||||||
python_version = "PY3",
|
python_version = "PY3",
|
||||||
srcs_version = "PY3",
|
srcs_version = "PY3",
|
||||||
deps = [
|
deps = ["//tensorflow_privacy/privacy/optimizers:dp_optimizer"],
|
||||||
"//tensorflow_privacy/privacy/optimizers:dp_optimizer",
|
|
||||||
"@com_google_differential_py//dp_accounting:accounting",
|
|
||||||
],
|
|
||||||
)
|
)
|
||||||
|
|
||||||
py_binary(
|
py_binary(
|
||||||
|
@ -36,10 +33,7 @@ py_binary(
|
||||||
srcs = ["mnist_dpsgd_tutorial_keras.py"],
|
srcs = ["mnist_dpsgd_tutorial_keras.py"],
|
||||||
python_version = "PY3",
|
python_version = "PY3",
|
||||||
srcs_version = "PY3",
|
srcs_version = "PY3",
|
||||||
deps = [
|
deps = ["//tensorflow_privacy/privacy/optimizers:dp_optimizer_keras"],
|
||||||
"//tensorflow_privacy/privacy/optimizers:dp_optimizer_keras",
|
|
||||||
"@com_google_differential_py//dp_accounting:accounting",
|
|
||||||
],
|
|
||||||
)
|
)
|
||||||
|
|
||||||
py_binary(
|
py_binary(
|
||||||
|
@ -47,10 +41,7 @@ py_binary(
|
||||||
srcs = ["mnist_dpsgd_tutorial_keras_model.py"],
|
srcs = ["mnist_dpsgd_tutorial_keras_model.py"],
|
||||||
python_version = "PY3",
|
python_version = "PY3",
|
||||||
srcs_version = "PY3",
|
srcs_version = "PY3",
|
||||||
deps = [
|
deps = ["//tensorflow_privacy/privacy/keras_models:dp_keras_model"],
|
||||||
"//tensorflow_privacy/privacy/keras_models:dp_keras_model",
|
|
||||||
"@com_google_differential_py//dp_accounting:accounting",
|
|
||||||
],
|
|
||||||
)
|
)
|
||||||
|
|
||||||
py_binary(
|
py_binary(
|
||||||
|
@ -58,10 +49,7 @@ py_binary(
|
||||||
srcs = ["mnist_dpsgd_tutorial_vectorized.py"],
|
srcs = ["mnist_dpsgd_tutorial_vectorized.py"],
|
||||||
python_version = "PY3",
|
python_version = "PY3",
|
||||||
srcs_version = "PY3",
|
srcs_version = "PY3",
|
||||||
deps = [
|
deps = ["//tensorflow_privacy/privacy/optimizers:dp_optimizer_vectorized"],
|
||||||
"//tensorflow_privacy/privacy/optimizers:dp_optimizer_vectorized",
|
|
||||||
"@com_google_differential_py//dp_accounting:accounting",
|
|
||||||
],
|
|
||||||
)
|
)
|
||||||
|
|
||||||
py_binary(
|
py_binary(
|
||||||
|
@ -81,10 +69,7 @@ py_binary(
|
||||||
srcs = ["mnist_lr_tutorial.py"],
|
srcs = ["mnist_lr_tutorial.py"],
|
||||||
python_version = "PY3",
|
python_version = "PY3",
|
||||||
srcs_version = "PY3",
|
srcs_version = "PY3",
|
||||||
deps = [
|
deps = ["//tensorflow_privacy/privacy/optimizers:dp_optimizer"],
|
||||||
"//tensorflow_privacy/privacy/optimizers:dp_optimizer",
|
|
||||||
"@com_google_differential_py//dp_accounting:accounting",
|
|
||||||
],
|
|
||||||
)
|
)
|
||||||
|
|
||||||
py_binary(
|
py_binary(
|
||||||
|
@ -92,10 +77,7 @@ py_binary(
|
||||||
srcs = ["lm_dpsgd_tutorial.py"],
|
srcs = ["lm_dpsgd_tutorial.py"],
|
||||||
python_version = "PY3",
|
python_version = "PY3",
|
||||||
srcs_version = "PY3",
|
srcs_version = "PY3",
|
||||||
deps = [
|
deps = ["//tensorflow_privacy/privacy/optimizers:dp_optimizer"],
|
||||||
"//tensorflow_privacy/privacy/optimizers:dp_optimizer",
|
|
||||||
"@com_google_differential_py//dp_accounting:accounting",
|
|
||||||
],
|
|
||||||
)
|
)
|
||||||
|
|
||||||
py_binary(
|
py_binary(
|
||||||
|
|
Loading…
Reference in a new issue