-
Notifications
You must be signed in to change notification settings - Fork 190
/
Copy pathBUILD
90 lines (82 loc) · 2.51 KB
/
BUILD
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
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Description:
# Build rules for Estimator APIs in Neural Structured Learning.
# Placeholder for internal Python strict & test compatibility macro.
package(
default_visibility = ["//visibility:public"],
licenses = ["notice"], # Apache 2.0
)
py_library(
name = "estimator",
srcs = ["__init__.py"],
srcs_version = "PY3",
deps = [
":adversarial_regularization",
":graph_regularization",
],
)
py_library(
name = "adversarial_regularization",
srcs = ["adversarial_regularization.py"],
srcs_version = "PY3",
deps = [
"//neural_structured_learning/configs",
"//neural_structured_learning/lib",
# package tensorflow
# package tensorflow:tensorflow_estimator
],
)
py_test(
name = "adversarial_regularization_test",
srcs = ["adversarial_regularization_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":estimator",
# package absl/testing:parameterized
"//neural_structured_learning/configs",
# package numpy
# package tensorflow
# package tensorflow:tensorflow_estimator
# package tensorflow framework_test_lib,
],
)
py_library(
name = "graph_regularization",
srcs = ["graph_regularization.py"],
srcs_version = "PY3",
deps = [
"//neural_structured_learning/configs",
"//neural_structured_learning/lib:distances",
"//neural_structured_learning/lib:utils",
# package tensorflow
# package tensorflow:tensorflow_estimator
],
)
py_test(
name = "graph_regularization_test",
srcs = ["graph_regularization_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":estimator",
# package protobuf,
"//neural_structured_learning/configs",
# package numpy
# package tensorflow
# package tensorflow:tensorflow_estimator
# package tensorflow framework_test_lib,
],
)