aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/receptive_field/BUILD
blob: 9325a14745c1db2f8c311602143175e736fc3c5f (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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# Description:
#   Contains modules to compute receptive field parameters for CNN models.

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

licenses(["notice"])  # Apache 2.0

exports_files(["LICENSE"])

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

# Transitive dependencies of this target will be included in the pip package.
py_library(
    name = "receptive_field_pip",
    deps = [
        ":receptive_field_py",
    ],
)

py_library(
    name = "graph_compute_order_py",
    srcs = [
        "python/util/graph_compute_order.py",
    ],
    srcs_version = "PY2AND3",
    deps = [
        ":parse_layer_parameters_py",
        "//tensorflow/python:platform",
    ],
)

py_library(
    name = "parse_layer_parameters_py",
    srcs = [
        "python/util/parse_layer_parameters.py",
    ],
    srcs_version = "PY2AND3",
    deps = [
        "//tensorflow/contrib/util:util_py",
        "//tensorflow/python:platform",
    ],
)

py_library(
    name = "receptive_field_py",
    srcs = [
        "python/util/parse_layer_parameters.py",
        "python/util/receptive_field.py",
        "receptive_field_api.py",
    ],
    srcs_version = "PY2AND3",
    deps = [
        ":graph_compute_order_py",
        "//tensorflow/python:framework_ops",
        "//tensorflow/python:platform",
        "//third_party/py/numpy",
    ],
)

py_test(
    name = "graph_compute_order_test",
    srcs = ["python/util/graph_compute_order_test.py"],
    srcs_version = "PY2AND3",
    deps = [
        ":graph_compute_order_py",
        ":receptive_field_py",
        "//tensorflow/contrib/slim",
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:dtypes",
        "//tensorflow/python:framework_ops",
        "//tensorflow/python:nn",
    ],
)

py_test(
    name = "parse_layer_parameters_test",
    srcs = ["python/util/parse_layer_parameters_test.py"],
    srcs_version = "PY2AND3",
    deps = [
        ":graph_compute_order_py",
        ":parse_layer_parameters_py",
        "//tensorflow/contrib/slim",
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:dtypes",
        "//tensorflow/python:framework_ops",
        "//tensorflow/python:nn",
    ],
)

py_test(
    name = "receptive_field_test",
    srcs = ["python/util/receptive_field_test.py"],
    srcs_version = "PY2AND3",
    deps = [
        ":receptive_field_py",
        "//tensorflow/contrib/slim",
        "//tensorflow/python:array_ops",
        "//tensorflow/python:client_testlib",
        "//tensorflow/python:dtypes",
        "//tensorflow/python:framework_ops",
        "//tensorflow/python:nn",
        "//third_party/py/numpy",
    ],
)