tensorflow_privacy/privacy/optimizers/BUILD

56 lines
1 KiB
Text
Raw Normal View History

2018-12-04 16:50:21 -07:00
licenses(["notice"]) # Apache 2.0
py_library(
name = "gaussian_average_query",
srcs = ["gaussian_average_query.py"],
deps = [
":private_queries",
2018-12-04 18:49:00 -07:00
"@org_tensorflow//tensorflow:tensorflow_py",
2018-12-04 16:50:21 -07:00
],
)
py_library(
name = "dp_optimizers",
deps = [
":dp_adam",
":dp_gradient_descent",
],
)
py_library(
name = "dp_adam",
srcs = [
"dp_adam.py",
],
deps = [
":gaussian_average_query",
2018-12-04 18:49:00 -07:00
"@org_tensorflow//tensorflow:tensorflow_py",
2018-12-04 16:50:21 -07:00
],
)
py_library(
name = "dp_gradient_descent",
srcs = [
"dp_gradient_descent.py",
],
deps = [
":gaussian_average_query",
2018-12-04 18:49:00 -07:00
"@org_tensorflow//tensorflow:tensorflow_py",
2018-12-04 16:50:21 -07:00
],
)
py_test(
name = "dp_optimizer_test",
srcs = ["dp_optimizer_test.py"],
deps = [
":dp_optimizers",
2018-12-04 18:49:00 -07:00
"@absl_py//absl/testing:parameterized",
"@org_tensorflow//tensorflow:tensorflow_py",
2018-12-04 16:50:21 -07:00
],
)
py_library(
name = "private_queries",
srcs = ["private_queries.py"],
)