Skip to content

Commit f27d1e0

Browse files
csferngtensorflow-copybara
authored andcommitted
internal change
PiperOrigin-RevId: 316553522
1 parent e704b19 commit f27d1e0

File tree

5 files changed

+35
-20
lines changed

5 files changed

+35
-20
lines changed

neural_structured_learning/estimator/BUILD

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# Build rules for Estimator APIs in Neural Structured Learning.
1717

1818
# Placeholder for internal Python strict compatibility macro.
19-
# Placeholder for internal Python version compatibility macro.
19+
load("//devtools/python/blaze:python3.bzl", "py2and3_strict_test")
2020

2121
package(
2222
default_visibility = ["//visibility:public"],
@@ -46,9 +46,10 @@ py_library(
4646
],
4747
)
4848

49-
py_test(
49+
py2and3_strict_test(
5050
name = "adversarial_regularization_test",
5151
srcs = ["adversarial_regularization_test.py"],
52+
python_version = "PY3",
5253
srcs_version = "PY2AND3",
5354
deps = [
5455
":estimator",
@@ -72,9 +73,10 @@ py_library(
7273
],
7374
)
7475

75-
py_test(
76+
py2and3_strict_test(
7677
name = "graph_regularization_test",
7778
srcs = ["graph_regularization_test.py"],
79+
python_version = "PY3",
7880
srcs_version = "PY2AND3",
7981
deps = [
8082
":estimator",

neural_structured_learning/keras/BUILD

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
# Placeholder for internal Python strict compatibility macro.
16-
# Placeholder for internal Python version compatibility macro.
16+
load("//devtools/python/blaze:python3.bzl", "py2and3_strict_test")
1717

1818
# Description:
1919
# Build rules for Keras APIs in Neural Structured Learning.
@@ -48,9 +48,10 @@ py_library(
4848
],
4949
)
5050

51-
py_test(
51+
py2and3_strict_test(
5252
name = "adversarial_regularization_multi_device_test",
5353
srcs = ["adversarial_regularization_multi_device_test.py"],
54+
python_version = "PY3",
5455
srcs_version = "PY2AND3",
5556
deps = [
5657
":adversarial_regularization",
@@ -60,9 +61,10 @@ py_test(
6061
],
6162
)
6263

63-
py_test(
64+
py2and3_strict_test(
6465
name = "adversarial_regularization_test",
6566
srcs = ["adversarial_regularization_test.py"],
67+
python_version = "PY3",
6668
srcs_version = "PY2AND3",
6769
deps = [
6870
":adversarial_regularization",
@@ -86,10 +88,11 @@ py_library(
8688
],
8789
)
8890

89-
py_test(
91+
py2and3_strict_test(
9092
name = "graph_regularization_test",
9193
timeout = "long",
9294
srcs = ["graph_regularization_test.py"],
95+
python_version = "PY3",
9396
srcs_version = "PY2AND3",
9497
deps = [
9598
":graph_regularization",

neural_structured_learning/keras/layers/BUILD

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
# Placeholder for internal Python strict compatibility macro.
16-
# Placeholder for internal Python version compatibility macro.
16+
load("//devtools/python/blaze:python3.bzl", "py2and3_strict_test")
1717

1818
# Description:
1919
# Build rules for custom Keras layers in Neural Structured Learning.
@@ -35,12 +35,13 @@ py_library(
3535
],
3636
)
3737

38-
py_test(
38+
py2and3_strict_test(
3939
name = "layers_test",
4040
size = "medium",
4141
srcs = [
4242
"layers_test.py",
4343
],
44+
python_version = "PY3",
4445
deps = [
4546
":layers",
4647
# package absl/testing:parameterized
@@ -63,11 +64,12 @@ py_library(
6364
],
6465
)
6566

66-
py_test(
67+
py2and3_strict_test(
6768
name = "neighbor_features_test",
6869
srcs = [
6970
"neighbor_features_test.py",
7071
],
72+
python_version = "PY3",
7173
srcs_version = "PY2AND3",
7274
deps = [
7375
":neighbor_features",
@@ -93,9 +95,10 @@ py_library(
9395
],
9496
)
9597

96-
py_test(
98+
py2and3_strict_test(
9799
name = "pairwise_distance_test",
98100
srcs = ["pairwise_distance_test.py"],
101+
python_version = "PY3",
99102
srcs_version = "PY2AND3",
100103
deps = [
101104
":pairwise_distance",

neural_structured_learning/lib/BUILD

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
# Placeholder for internal Python strict compatibility macro.
16-
# Placeholder for internal Python version compatibility macro.
16+
load("//devtools/python/blaze:python3.bzl", "py2and3_strict_test")
1717

1818
# Description:
1919
# Build rules for libraries and ops in Neural Structured Learning.
@@ -60,9 +60,10 @@ py_library(
6060
],
6161
)
6262

63-
py_test(
63+
py2and3_strict_test(
6464
name = "adversarial_neighbor_test",
6565
srcs = ["adversarial_neighbor_test.py"],
66+
python_version = "PY3",
6667
srcs_version = "PY2AND3",
6768
deps = [
6869
":adversarial_neighbor",
@@ -84,9 +85,10 @@ py_library(
8485
],
8586
)
8687

87-
py_test(
88+
py2and3_strict_test(
8889
name = "distances_test",
8990
srcs = ["distances_test.py"],
91+
python_version = "PY3",
9092
srcs_version = "PY2AND3",
9193
deps = [
9294
":distances",
@@ -107,9 +109,10 @@ py_library(
107109
],
108110
)
109111

110-
py_test(
112+
py2and3_strict_test(
111113
name = "regularizer_test",
112114
srcs = ["regularizer_test.py"],
115+
python_version = "PY3",
113116
srcs_version = "PY2AND3",
114117
deps = [
115118
":regularizer",
@@ -130,10 +133,11 @@ py_library(
130133
],
131134
)
132135

133-
py_test(
136+
py2and3_strict_test(
134137
name = "utils_test",
135138
size = "small",
136139
srcs = ["utils_test.py"],
140+
python_version = "PY3",
137141
srcs_version = "PY2AND3",
138142
deps = [
139143
":utils",

neural_structured_learning/tools/BUILD

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
# Placeholder for internal Python strict compatibility macro.
16-
# Placeholder for internal Python version compatibility macro.
16+
load("//devtools/python/blaze:python3.bzl", "py2and3_strict_test")
1717

1818
# Description:
1919
# Build rules for tools in Neural Structured Learning.
@@ -46,9 +46,10 @@ py_library(
4646
],
4747
)
4848

49-
py_test(
49+
py2and3_strict_test(
5050
name = "graph_utils_test",
5151
srcs = ["graph_utils_test.py"],
52+
python_version = "PY3",
5253
srcs_version = "PY2AND3",
5354
deps = [
5455
":graph_utils",
@@ -70,9 +71,10 @@ py_library(
7071
],
7172
)
7273

73-
py_test(
74+
py2and3_strict_test(
7475
name = "build_graph_test",
7576
srcs = ["build_graph_test.py"],
77+
python_version = "PY3",
7678
srcs_version = "PY2AND3",
7779
deps = [
7880
":build_graph_lib",
@@ -106,9 +108,10 @@ py_library(
106108
],
107109
)
108110

109-
py_test(
111+
py2and3_strict_test(
110112
name = "pack_nbrs_test",
111113
srcs = ["pack_nbrs_test.py"],
114+
python_version = "PY3",
112115
srcs_version = "PY2AND3",
113116
deps = [
114117
":graph_utils",

0 commit comments

Comments
 (0)