From 7a5f4eddb841ee17cb14e85526f2840e7544fdd9 Mon Sep 17 00:00:00 2001 From: Steve Chien Date: Wed, 15 Jun 2022 11:04:41 -0700 Subject: [PATCH] Internal change. PiperOrigin-RevId: 455173202 --- g3doc/BUILD | 21 ------------------- tensorflow_privacy/privacy/estimators/BUILD | 3 --- tensorflow_privacy/privacy/optimizers/BUILD | 9 +------- .../membership_inference_attack/BUILD | 5 ----- tutorials/BUILD | 10 --------- tutorials/walkthrough/BUILD | 4 ---- 6 files changed, 1 insertion(+), 51 deletions(-) delete mode 100644 g3doc/BUILD diff --git a/g3doc/BUILD b/g3doc/BUILD deleted file mode 100644 index 09d87a9..0000000 --- a/g3doc/BUILD +++ /dev/null @@ -1,21 +0,0 @@ -load("@rules_python//python:defs.bzl", "py_binary") -load("//third_party/py/tensorflow_docs/google:tf_org.bzl", "tf_org_check_links") - -package(default_visibility = ["//visibility:public"]) - -licenses(["notice"]) - -tf_org_check_links(name = "check_links") - -py_binary( - name = "build_docs", - srcs = ["build_docs.py"], - python_version = "PY3", - srcs_version = "PY3", - deps = [ - "//tensorflow_privacy", - "//third_party/py/tensorflow_docs/api_generator:doc_controls", - "//third_party/py/tensorflow_docs/api_generator:generate_lib", - "//third_party/py/tensorflow_docs/api_generator:public_api", - ], -) diff --git a/tensorflow_privacy/privacy/estimators/BUILD b/tensorflow_privacy/privacy/estimators/BUILD index e316fa2..5b5c7bf 100644 --- a/tensorflow_privacy/privacy/estimators/BUILD +++ b/tensorflow_privacy/privacy/estimators/BUILD @@ -27,7 +27,6 @@ py_library( "binary_class_head.py", ], srcs_version = "PY3", - deps = ["//third_party/tensorflow_estimator/python/estimator:binary_class_head"], ) py_library( @@ -36,7 +35,6 @@ py_library( "multi_class_head.py", ], srcs_version = "PY3", - deps = ["//third_party/tensorflow_estimator/python/estimator:multi_class_head"], ) py_library( @@ -45,7 +43,6 @@ py_library( "multi_label_head.py", ], srcs_version = "PY3", - deps = ["//third_party/tensorflow_estimator/python/estimator:multi_label_head"], ) py_library( diff --git a/tensorflow_privacy/privacy/optimizers/BUILD b/tensorflow_privacy/privacy/optimizers/BUILD index 17d6742..e6ca5ce 100644 --- a/tensorflow_privacy/privacy/optimizers/BUILD +++ b/tensorflow_privacy/privacy/optimizers/BUILD @@ -53,8 +53,6 @@ py_test( deps = [ ":dp_optimizer", "//tensorflow_privacy/privacy/dp_query:gaussian_query", - "//third_party/py/tensorflow:tensorflow_compat_v1_estimator", - "//third_party/py/tensorflow:tensorflow_estimator", ], ) @@ -64,11 +62,7 @@ py_test( srcs = ["dp_optimizer_vectorized_test.py"], python_version = "PY3", srcs_version = "PY3", - deps = [ - ":dp_optimizer_vectorized", - "//third_party/py/tensorflow:tensorflow_compat_v1_estimator", - "//third_party/py/tensorflow:tensorflow_estimator", - ], + deps = [":dp_optimizer_vectorized"], ) py_test( @@ -92,6 +86,5 @@ py_test( deps = [ "//tensorflow_privacy/privacy/optimizers:dp_optimizer_keras", "//tensorflow_privacy/privacy/optimizers:dp_optimizer_keras_vectorized", - "//third_party/py/tensorflow:tensorflow_estimator", ], ) diff --git a/tensorflow_privacy/privacy/privacy_tests/membership_inference_attack/BUILD b/tensorflow_privacy/privacy/privacy_tests/membership_inference_attack/BUILD index 6f4ffbf..1044742 100644 --- a/tensorflow_privacy/privacy/privacy_tests/membership_inference_attack/BUILD +++ b/tensorflow_privacy/privacy/privacy_tests/membership_inference_attack/BUILD @@ -113,8 +113,6 @@ py_test( deps = [ ":membership_inference_attack", ":tf_estimator_evaluation", - "//third_party/py/tensorflow:tensorflow_compat_v1_estimator", - "//third_party/py/tensorflow:tensorflow_estimator", ], ) @@ -126,7 +124,6 @@ py_library( ":membership_inference_attack", ":utils", ":utils_tensorboard", - "//third_party/py/tensorflow:tensorflow_estimator", ], ) @@ -138,8 +135,6 @@ py_binary( deps = [ ":membership_inference_attack", ":tf_estimator_evaluation", - "//third_party/py/tensorflow:tensorflow_compat_v1_estimator", - "//third_party/py/tensorflow:tensorflow_estimator", ], ) diff --git a/tutorials/BUILD b/tutorials/BUILD index a732962..b352f9e 100644 --- a/tutorials/BUILD +++ b/tutorials/BUILD @@ -17,7 +17,6 @@ py_binary( ":mnist_dpsgd_tutorial_common", "//tensorflow_privacy/privacy/analysis:compute_dp_sgd_privacy_lib", "//tensorflow_privacy/privacy/optimizers:dp_optimizer", - "//third_party/py/tensorflow:tensorflow_estimator", ], ) @@ -64,8 +63,6 @@ py_binary( srcs_version = "PY3", deps = [ "//tensorflow_privacy/privacy/optimizers:dp_optimizer_vectorized", - "//third_party/py/tensorflow:tensorflow_compat_v1_estimator", - "//third_party/py/tensorflow:tensorflow_estimator", "@com_google_differential_py//python/dp_accounting:dp_event", "@com_google_differential_py//python/dp_accounting/rdp:rdp_privacy_accountant", ], @@ -80,7 +77,6 @@ py_binary( ":mnist_dpsgd_tutorial_common", "//tensorflow_privacy/privacy/analysis:compute_dp_sgd_privacy_lib", "//tensorflow_privacy/privacy/optimizers:dp_optimizer", - "//third_party/py/tensorflow:tensorflow_estimator", ], ) @@ -92,8 +88,6 @@ py_binary( deps = [ "//tensorflow_privacy/privacy/analysis:rdp_accountant", "//tensorflow_privacy/privacy/optimizers:dp_optimizer", - "//third_party/py/tensorflow:tensorflow_compat_v1_estimator", - "//third_party/py/tensorflow:tensorflow_estimator", "@com_google_differential_py//python/dp_accounting:dp_event", "@com_google_differential_py//python/dp_accounting/rdp:rdp_privacy_accountant", ], @@ -106,8 +100,6 @@ py_binary( srcs_version = "PY3", deps = [ "//tensorflow_privacy/privacy/optimizers:dp_optimizer", - "//third_party/py/tensorflow:tensorflow_compat_v1_estimator", - "//third_party/py/tensorflow:tensorflow_estimator", "@com_google_differential_py//python/dp_accounting:dp_event", "@com_google_differential_py//python/dp_accounting/rdp:rdp_privacy_accountant", ], @@ -119,8 +111,6 @@ py_binary( deps = [ "//tensorflow_privacy/privacy/analysis:gdp_accountant", "//tensorflow_privacy/privacy/optimizers:dp_optimizer", - "//third_party/py/tensorflow:tensorflow_compat_v1_estimator", - "//third_party/py/tensorflow:tensorflow_estimator", ], ) diff --git a/tutorials/walkthrough/BUILD b/tutorials/walkthrough/BUILD index 2d6e382..e1a6791 100644 --- a/tutorials/walkthrough/BUILD +++ b/tutorials/walkthrough/BUILD @@ -7,8 +7,4 @@ py_binary( srcs = ["mnist_scratch.py"], python_version = "PY3", srcs_version = "PY3", - deps = [ - "//third_party/py/tensorflow:tensorflow_compat_v1_estimator", - "//third_party/py/tensorflow:tensorflow_estimator", - ], )