Skip to content

Commit

Permalink
Internal change.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 547650065
  • Loading branch information
arjung authored and tensorflow-copybara committed Jul 13, 2023
1 parent 6d0de7d commit 0c255df
Show file tree
Hide file tree
Showing 18 changed files with 69 additions and 17 deletions.
9 changes: 9 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,12 @@ http_archive(
build_file = "@pybind11_bazel//:pybind11.BUILD",
)

# License rules.
http_archive(
name = "rules_license",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_license/releases/download/0.0.7/rules_license-0.0.7.tar.gz",
"https://github.com/bazelbuild/rules_license/releases/download/0.0.7/rules_license-0.0.7.tar.gz",
],
sha256 = "4531deccb913639c30e5c7512a054d5d875698daeb75d8cf90f284375fe7c360",
)
11 changes: 10 additions & 1 deletion neural_structured_learning/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,17 @@

# Placeholder for internal Python strict compatibility macro.
# Internal annotation for sync
load("@rules_license//rules:license.bzl", "license")

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

license(
name = "license",
package_name = "neural_structured_learning",
)

licenses(["notice"])

Expand Down
4 changes: 3 additions & 1 deletion neural_structured_learning/configs/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@
# Placeholder for internal Python strict compatibility macro.

package(
default_applicable_licenses = ["//neural_structured_learning:license"],
default_visibility = ["//visibility:public"],
licenses = ["notice"], # Apache 2.0
)

licenses(["notice"])

py_library(
name = "configs",
srcs = [
Expand Down
4 changes: 3 additions & 1 deletion neural_structured_learning/estimator/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@
# Placeholder for internal Python strict & test compatibility macro.

package(
default_applicable_licenses = ["//neural_structured_learning:license"],
default_visibility = ["//visibility:public"],
licenses = ["notice"], # Apache 2.0
)

licenses(["notice"])

py_library(
name = "estimator",
srcs = ["__init__.py"],
Expand Down
5 changes: 4 additions & 1 deletion neural_structured_learning/examples/BUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
package(
licenses = ["notice"], # Apache 2.0
default_applicable_licenses = ["//neural_structured_learning:license"],
default_visibility = ["//visibility:public"],
)

licenses(["notice"])

py_binary(
name = "graph_keras_mlp_cora",
srcs = ["graph_keras_mlp_cora.py"],
Expand Down
4 changes: 3 additions & 1 deletion neural_structured_learning/experimental/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
# Placeholder for internal Python strict compatibility macro.

package(
default_applicable_licenses = ["//neural_structured_learning:license"],
default_visibility = ["//neural_structured_learning:__subpackages__"],
licenses = ["notice"], # Apache 2.0
)

licenses(["notice"])

py_library(
name = "experimental",
srcs = ["__init__.py"],
Expand Down
4 changes: 3 additions & 1 deletion neural_structured_learning/keras/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@
# Build rules for Keras APIs in Neural Structured Learning.

package(
default_applicable_licenses = ["//neural_structured_learning:license"],
default_visibility = ["//visibility:public"],
licenses = ["notice"], # Apache 2.0
)

licenses(["notice"])

py_library(
name = "keras",
srcs = ["__init__.py"],
Expand Down
5 changes: 4 additions & 1 deletion neural_structured_learning/keras/layers/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@
# Build rules for custom Keras layers in Neural Structured Learning.

package(
licenses = ["notice"], # Apache 2.0
default_applicable_licenses = ["//neural_structured_learning:license"],
default_visibility = ["//visibility:public"],
)

licenses(["notice"])

py_library(
name = "layers",
srcs = ["__init__.py"],
Expand Down
4 changes: 3 additions & 1 deletion neural_structured_learning/lib/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@
# Build rules for libraries and ops in Neural Structured Learning.

package(
default_applicable_licenses = ["//neural_structured_learning:license"],
default_visibility = ["//visibility:public"],
licenses = ["notice"], # Apache 2.0
)

licenses(["notice"])

py_library(
name = "lib",
srcs = ["__init__.py"],
Expand Down
4 changes: 3 additions & 1 deletion neural_structured_learning/tools/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@
# Build rules for tools in Neural Structured Learning.

package(
default_applicable_licenses = ["//neural_structured_learning:license"],
default_visibility = ["//visibility:public"],
licenses = ["notice"], # Apache 2.0
)

licenses(["notice"])

py_library(
name = "tools",
srcs = ["__init__.py"],
Expand Down
4 changes: 3 additions & 1 deletion research/carls/util/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@
# Placeholder for internal Python strict & test compatibility macro.

package(
default_applicable_licenses = ["//neural_structured_learning:license"],
default_visibility = ["//research/carls:internal"],
licenses = ["notice"], # Apache 2.0
)

licenses(["notice"])

py_library(
name = "array_ops",
srcs = ["array_ops.py"],
Expand Down
4 changes: 3 additions & 1 deletion research/meo/linear_finetuning/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@
load("//devtools/python/blaze:pytype.bzl", "pytype_strict_binary", "pytype_strict_library")

package(
default_applicable_licenses = ["//neural_structured_learning:license"],
default_visibility = ["//research/meo:__subpackages__"],
licenses = ["notice"], # Apache 2.0
)

licenses(["notice"])

pytype_strict_library(
name = "linear_finetuning_lib",
srcs = [
Expand Down
4 changes: 3 additions & 1 deletion research/meo/mlp_baseline/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@
load("//devtools/python/blaze:pytype.bzl", "pytype_strict_binary", "pytype_strict_library")

package(
default_applicable_licenses = ["//neural_structured_learning:license"],
default_visibility = ["//research/meo:__subpackages__"],
licenses = ["notice"], # Apache 2.0
)

licenses(["notice"])

pytype_strict_library(
name = "mlp_baseline_lib",
srcs = [
Expand Down
4 changes: 3 additions & 1 deletion research/meo/parameter_generator_generation/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@
load("//devtools/python/blaze:pytype.bzl", "pytype_strict_binary", "pytype_strict_library")

package(
default_applicable_licenses = ["//neural_structured_learning:license"],
default_visibility = ["//research/meo:__subpackages__"],
licenses = ["notice"], # Apache 2.0
)

licenses(["notice"])

pytype_strict_library(
name = "parameter_generator_lib",
srcs = [
Expand Down
4 changes: 3 additions & 1 deletion research/neural_clustering/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@
# Build rules for Neural Clustering.

package(
default_applicable_licenses = ["//neural_structured_learning:license"],
default_visibility = ["//visibility:public"],
licenses = ["notice"], # Apache 2.0
)

licenses(["notice"])

py_library(
name = "neural_clustering",
srcs = ["__init__.py"],
Expand Down
4 changes: 3 additions & 1 deletion research/neural_clustering/data_generators/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@
# Build rules for data modules in Neural Clustering.

package(
default_applicable_licenses = ["//neural_structured_learning:license"],
default_visibility = ["//visibility:public"],
licenses = ["notice"], # Apache 2.0
)

licenses(["notice"])

py_library(
name = "data_generators",
srcs = ["__init__.py"],
Expand Down
4 changes: 3 additions & 1 deletion research/neural_clustering/models/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@
# Build rules for models in Neural Clustering.

package(
default_applicable_licenses = ["//neural_structured_learning:license"],
default_visibility = ["//visibility:public"],
licenses = ["notice"], # Apache 2.0
)

licenses(["notice"])

py_library(
name = "models",
srcs = ["__init__.py"],
Expand Down
4 changes: 3 additions & 1 deletion research/neural_clustering/utils/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@
# Build rules for utils in Neural Clustering.

package(
default_applicable_licenses = ["//neural_structured_learning:license"],
default_visibility = ["//visibility:public"],
licenses = ["notice"], # Apache 2.0
)

licenses(["notice"])

py_library(
name = "utils",
srcs = ["__init__.py"],
Expand Down

0 comments on commit 0c255df

Please sign in to comment.