tensorflow_privacy/tutorials/BUILD
Michael Reneer 69d84d1892 Add TensorFlow Privacy BUILD and WORKSPACE files.
PiperOrigin-RevId: 429141704
2022-02-16 23:30:06 +00:00

114 lines
3 KiB
Text

load("@rules_python//python:defs.bzl", "py_binary", "py_library")
licenses(["notice"])
py_library(
name = "mnist_dpsgd_tutorial_common",
srcs = ["mnist_dpsgd_tutorial_common.py"],
srcs_version = "PY3",
)
py_binary(
name = "mnist_dpsgd_tutorial",
srcs = ["mnist_dpsgd_tutorial.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":mnist_dpsgd_tutorial_common",
"//tensorflow_privacy/privacy/analysis:compute_dp_sgd_privacy_lib",
"//tensorflow_privacy/privacy/optimizers:dp_optimizer",
],
)
py_binary(
name = "mnist_dpsgd_tutorial_eager",
srcs = ["mnist_dpsgd_tutorial_eager.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
"//tensorflow_privacy/privacy/analysis:rdp_accountant",
"//tensorflow_privacy/privacy/optimizers:dp_optimizer",
],
)
py_binary(
name = "mnist_dpsgd_tutorial_keras",
srcs = ["mnist_dpsgd_tutorial_keras.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
"//tensorflow_privacy/privacy/analysis:rdp_accountant",
"//tensorflow_privacy/privacy/optimizers:dp_optimizer_keras",
],
)
py_binary(
name = "mnist_dpsgd_tutorial_keras_model",
srcs = ["mnist_dpsgd_tutorial_keras_model.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
"//tensorflow_privacy/privacy/analysis:rdp_accountant",
"//tensorflow_privacy/privacy/keras_models:dp_keras_model",
],
)
py_binary(
name = "mnist_dpsgd_tutorial_vectorized",
srcs = ["mnist_dpsgd_tutorial_vectorized.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
"//tensorflow_privacy/privacy/analysis:rdp_accountant",
"//tensorflow_privacy/privacy/optimizers:dp_optimizer_vectorized",
],
)
py_binary(
name = "mnist_dpsgd_tutorial_tpu",
srcs = ["mnist_dpsgd_tutorial_tpu.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":mnist_dpsgd_tutorial_common",
"//tensorflow_privacy/privacy/analysis:compute_dp_sgd_privacy_lib",
"//tensorflow_privacy/privacy/optimizers:dp_optimizer",
],
)
py_binary(
name = "mnist_lr_tutorial",
srcs = ["mnist_lr_tutorial.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
"//tensorflow_privacy/privacy/analysis:rdp_accountant",
"//tensorflow_privacy/privacy/optimizers:dp_optimizer",
],
)
py_binary(
name = "lm_dpsgd_tutorial",
srcs = ["lm_dpsgd_tutorial.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
"//tensorflow_privacy/privacy/analysis:rdp_accountant",
"//tensorflow_privacy/privacy/optimizers:dp_optimizer",
],
)
py_binary(
name = "movielens_tutorial",
srcs = ["movielens_tutorial.py"],
deps = [
"//tensorflow_privacy/privacy/analysis:gdp_accountant",
"//tensorflow_privacy/privacy/optimizers:dp_optimizer",
],
)
filegroup(
name = "ignore_srcs",
srcs = ["bolton_tutorial.py"],
tags = ["ignore_srcs"],
)