• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Description:
2#   Common functionality for TensorFlow tooling
3
4licenses(["notice"])  # Apache 2.0
5
6exports_files(["LICENSE"])
7
8package(
9    default_visibility = ["//tensorflow:__subpackages__"],
10)
11
12load("//tensorflow:tensorflow.bzl", "py_test")
13
14py_library(
15    name = "public_api",
16    srcs = ["public_api.py"],
17    srcs_version = "PY2AND3",
18    deps = ["//tensorflow/python:util"],
19)
20
21py_test(
22    name = "public_api_test",
23    srcs = ["public_api_test.py"],
24    srcs_version = "PY2AND3",
25    deps = [
26        ":public_api",
27        "//tensorflow/python:platform_test",
28    ],
29)
30
31py_library(
32    name = "traverse",
33    srcs = ["traverse.py"],
34    srcs_version = "PY2AND3",
35    deps = ["//tensorflow/python:util"],
36)
37
38py_test(
39    name = "traverse_test",
40    srcs = ["traverse_test.py"],
41    srcs_version = "PY2AND3",
42    deps = [
43        ":test_module1",
44        ":test_module2",
45        ":traverse",
46        "//tensorflow/python:platform_test",
47    ],
48)
49
50py_library(
51    name = "test_module1",
52    srcs = ["test_module1.py"],
53    srcs_version = "PY2AND3",
54    deps = [
55        ":test_module2",
56    ],
57)
58
59py_library(
60    name = "test_module2",
61    srcs = ["test_module2.py"],
62    srcs_version = "PY2AND3",
63)
64