File size: 2,230 Bytes
97b6013
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
# Domain Separation Networks

package(
    default_visibility = [
        ":internal",
    ],
)

licenses(["notice"])  # Apache 2.0

exports_files(["LICENSE"])

package_group(
    name = "internal",
    packages = [
        "//domain_adaptation/...",
    ],
)

py_library(
    name = "models",
    srcs = [
        "models.py",
    ],
    deps = [
        ":utils",
    ],
)

py_library(
    name = "losses",
    srcs = [
        "losses.py",
    ],
    deps = [
        ":grl_op_grads_py",
        ":grl_op_shapes_py",
        ":grl_ops",
        ":utils",
    ],
)

py_test(
    name = "losses_test",
    srcs = [
        "losses_test.py",
    ],
    deps = [
        ":losses",
        ":utils",
    ],
)

py_library(
    name = "dsn",
    srcs = [
        "dsn.py",
    ],
    deps = [
        ":grl_op_grads_py",
        ":grl_op_shapes_py",
        ":grl_ops",
        ":losses",
        ":models",
        ":utils",
    ],
)

py_test(
    name = "dsn_test",
    srcs = [
        "dsn_test.py",
    ],
    deps = [
        ":dsn",
    ],
)

py_binary(
    name = "dsn_train",
    srcs = [
        "dsn_train.py",
    ],
    deps = [
        ":dsn",
        ":models",
        "//domain_adaptation/datasets:dataset_factory",
    ],
)

py_binary(
    name = "dsn_eval",
    srcs = [
        "dsn_eval.py",
    ],
    deps = [
        ":dsn",
        ":models",
        "//domain_adaptation/datasets:dataset_factory",
    ],
)

py_test(
    name = "models_test",
    srcs = [
        "models_test.py",
    ],
    deps = [
        ":models",
        "//domain_adaptation/datasets:dataset_factory",
    ],
)

py_library(
    name = "utils",
    srcs = [
        "utils.py",
    ],
    deps = [
    ],
)

py_library(
    name = "grl_op_grads_py",
    srcs = [
        "grl_op_grads.py",
    ],
    deps = [
        ":grl_ops",
    ],
)

py_library(
    name = "grl_op_shapes_py",
    srcs = [
        "grl_op_shapes.py",
    ],
    deps = [
    ],
)

py_library(
    name = "grl_ops",
    srcs = ["grl_ops.py"],
    data = ["_grl_ops.so"],
)

py_test(
    name = "grl_ops_test",
    size = "small",
    srcs = ["grl_ops_test.py"],
    deps = [
        ":grl_op_grads_py",
        ":grl_op_shapes_py",
        ":grl_ops",
    ],
)