BUILD 2.85 KB
Newer Older
Terry Koo's avatar
Terry Koo committed
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
109
110
package(
    default_visibility = ["//visibility:public"],
)

cc_library(
    name = "helpers",
    testonly = 1,
    srcs = ["helpers.cc"],
    hdrs = ["helpers.h"],
    deps = [
        "//dragnn/runtime:alignment",
        "//dragnn/runtime/math:avx_vector_array",
        "//dragnn/runtime/math:sgemvv",
        "//dragnn/runtime/math:transformations",
        "//dragnn/runtime/math:types",
        "//syntaxnet:test_main",
        "@org_tensorflow//tensorflow/core:lib",
    ],
)

cc_test(
    name = "helpers_test",
    size = "small",
    srcs = ["helpers_test.cc"],
    deps = [
        ":helpers",
        "//dragnn/runtime:alignment",
        "//dragnn/runtime/math:types",
        "//syntaxnet:test_main",
        "@org_tensorflow//tensorflow/core:lib",
        "@org_tensorflow//tensorflow/core:test",
    ],
)

cc_library(
    name = "fake_variable_store",
    testonly = 1,
    srcs = ["fake_variable_store.cc"],
    hdrs = ["fake_variable_store.h"],
    deps = [
        ":helpers",
        "//dragnn/protos:runtime_proto_cc",
        "//dragnn/runtime:alignment",
        "//dragnn/runtime:variable_store",
        "//syntaxnet:base",
        "@org_tensorflow//tensorflow/core:lib",
    ],
)

cc_test(
    name = "fake_variable_store_test",
    size = "small",
    srcs = ["fake_variable_store_test.cc"],
    deps = [
        ":fake_variable_store",
        "//dragnn/core/test:generic",
        "//dragnn/runtime:alignment",
        "//dragnn/runtime/math:types",
        "//syntaxnet:test_main",
        "@org_tensorflow//tensorflow/core:lib",
        "@org_tensorflow//tensorflow/core:test",
    ],
)

cc_library(
    name = "network_test_base",
    testonly = 1,
    srcs = ["network_test_base.cc"],
    hdrs = ["network_test_base.h"],
    deps = [
        ":fake_variable_store",
        "//dragnn/core/test:mock_compute_session",
        "//dragnn/protos:data_proto_cc",
        "//dragnn/runtime:extensions",
        "//dragnn/runtime:flexible_matrix_kernel",
        "//dragnn/runtime:network_states",
        "//dragnn/runtime:session_state",
        "//dragnn/runtime/math:types",
        "//syntaxnet:base",
        "@org_tensorflow//tensorflow/core:lib",
        "@org_tensorflow//tensorflow/core:test",
    ],
)

cc_library(
    name = "term_map_helpers",
    testonly = 1,
    srcs = ["term_map_helpers.cc"],
    hdrs = ["term_map_helpers.h"],
    deps = [
        "//dragnn/protos:spec_proto_cc",
        "//syntaxnet:base",
        "@org_tensorflow//tensorflow/core:lib",
        "@org_tensorflow//tensorflow/core:test",
    ],
)

cc_test(
    name = "term_map_helpers_test",
    size = "small",
    srcs = ["term_map_helpers_test.cc"],
    deps = [
        ":term_map_helpers",
        "//dragnn/core/test:generic",
        "//dragnn/protos:spec_proto_cc",
        "//syntaxnet:base",
        "//syntaxnet:term_frequency_map",
        "@org_tensorflow//tensorflow/core:test",
    ],
)