aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/BUILD
diff options
context:
space:
mode:
authorGravatar Anna R <annarev@google.com>2018-05-31 13:11:43 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-05-31 13:15:21 -0700
commit106191ccf06b49f7802736a63932a613546b56c5 (patch)
tree126938105e69b86f24527eeb080938da71f315c7 /tensorflow/BUILD
parenteebbcaf554fb89059054936491763fde9cf9513d (diff)
Moving generated API to tensorflow/.
PiperOrigin-RevId: 198767512
Diffstat (limited to 'tensorflow/BUILD')
-rw-r--r--tensorflow/BUILD17
1 files changed, 12 insertions, 5 deletions
diff --git a/tensorflow/BUILD b/tensorflow/BUILD
index f2ad16fa04..e0bce820d1 100644
--- a/tensorflow/BUILD
+++ b/tensorflow/BUILD
@@ -19,6 +19,10 @@ load(
"//tensorflow/core:platform/default/build_config.bzl",
"tf_additional_binary_deps",
)
+load(
+ "//tensorflow/tools/api/generator:api_gen.bzl",
+ "gen_api_init_files", # @unused
+)
# Config setting for determining if we are building for Android.
config_setting(
@@ -536,13 +540,16 @@ exports_files(
],
)
+gen_api_init_files(
+ name = "python_api_gen",
+ srcs = ["api_template.__init__.py"],
+ root_init_template = "api_template.__init__.py",
+)
+
py_library(
name = "tensorflow_py",
- srcs = ["__init__.py"],
+ srcs = [":python_api_gen"],
srcs_version = "PY2AND3",
visibility = ["//visibility:public"],
- deps = [
- "//tensorflow/python",
- "//tensorflow/tools/api/generator:python_api",
- ],
+ deps = ["//tensorflow/python"],
)