aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/meta_graph_transform/BUILD
blob: 24400789f8a937c88b86141704f7977494c1495e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Description:
#   Utility for applying the Graph Transform tool to a MetaGraphDef.

package(default_visibility = ["//visibility:public"])

licenses(["notice"])  # Apache 2.0

exports_files(["LICENSE"])

load(
    "//tensorflow:tensorflow.bzl",
    "py_test",
)

py_library(
    name = "meta_graph_transform",
    srcs = [
        "__init__.py",
        "meta_graph_transform.py",
    ],
    srcs_version = "PY2AND3",
    deps = [
        "//tensorflow/core:protos_all_py",
        "//tensorflow/python:framework",
        "//tensorflow/python:framework_ops",
        "//tensorflow/python:graph_util",
        "//tensorflow/python:session",
        "//tensorflow/python:training",
        "//tensorflow/python:util",
        "//tensorflow/python/saved_model:constants",
        "//tensorflow/tools/graph_transforms:transform_graph_py",
    ],
)

py_test(
    name = "meta_graph_transform_test",
    size = "small",
    srcs = ["meta_graph_transform_test.py"],
    srcs_version = "PY2AND3",
    visibility = ["//visibility:private"],
    deps = [
        ":meta_graph_transform",
        "//tensorflow/core:protos_all_py",
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:dtypes",
        "//tensorflow/python:framework_ops",
        "//tensorflow/python:session",
        "//tensorflow/python:training",
        "//tensorflow/python:util",
        "//tensorflow/python/saved_model:constants",
        "//tensorflow/tools/graph_transforms:transform_graph_py",
    ],
)

filegroup(
    name = "py_srcs",
    data = glob([
        "**/*.py",
    ]),
)