Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tensorflow_model_optimization/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ exports_files(["LICENSE"])
py_library(
name = "tensorflow_model_optimization",
srcs = ["__init__.py"],
strict_deps = True,
strict_deps = False,
deps = [
# distutils dep1,
"//tensorflow_model_optimization/python", # buildcleaner: keep
Expand Down
2 changes: 1 addition & 1 deletion tensorflow_model_optimization/python/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ licenses(["notice"])
py_library(
name = "python",
srcs = ["__init__.py"],
strict_deps = True,
strict_deps = False,
deps = [
"//tensorflow_model_optimization/python/core", # buildcleaner: keep
],
Expand Down
4 changes: 2 additions & 2 deletions tensorflow_model_optimization/python/core/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ licenses(["notice"])
py_library(
name = "core",
srcs = ["__init__.py"],
strict_deps = True,
strict_deps = False,
deps = [
"//tensorflow_model_optimization/python/core/api", # buildcleaner: keep
"//tensorflow_model_optimization/python/core/clustering", # buildcleaner: keep
Expand All @@ -21,5 +21,5 @@ py_library(
py_library(
name = "version",
srcs = ["version.py"],
strict_deps = True,
strict_deps = False,
)
2 changes: 1 addition & 1 deletion tensorflow_model_optimization/python/core/api/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ py_library(
"sparsity/__init__.py",
"sparsity/keras/__init__.py",
],
strict_deps = True,
strict_deps = False,
deps = [
"//tensorflow_model_optimization/python/core/clustering/keras:cluster",
"//tensorflow_model_optimization/python/core/clustering/keras:cluster_config",
Expand Down
2 changes: 1 addition & 1 deletion tensorflow_model_optimization/python/core/clustering/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ licenses(["notice"])
py_library(
name = "clustering",
srcs = ["__init__.py"],
strict_deps = True,
strict_deps = False,
deps = [
"//tensorflow_model_optimization/python/core/clustering/keras", # buildcleaner: keep
],
Expand Down
20 changes: 11 additions & 9 deletions tensorflow_model_optimization/python/core/clustering/keras/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ py_library(
srcs = [
"__init__.py",
],
strict_deps = True,
strict_deps = False,
deps = [
":cluster", # buildcleaner: keep
":clustering_callbacks", # buildcleaner: keep
Expand All @@ -24,7 +24,7 @@ py_library(
py_library(
name = "cluster",
srcs = ["cluster.py"],
strict_deps = True,
strict_deps = False,
visibility = ["//visibility:public"],
deps = [
":cluster_config",
Expand All @@ -38,14 +38,14 @@ py_library(
py_library(
name = "cluster_config",
srcs = ["cluster_config.py"],
strict_deps = True,
strict_deps = False,
visibility = ["//visibility:public"],
)

py_library(
name = "clustering_registry",
srcs = ["clustering_registry.py"],
strict_deps = True,
strict_deps = False,
visibility = ["//visibility:public"],
deps = [
":clusterable_layer",
Expand All @@ -58,7 +58,7 @@ py_library(
py_library(
name = "clusterable_layer",
srcs = ["clusterable_layer.py"],
strict_deps = True,
strict_deps = False,
visibility = ["//visibility:public"],
deps = [
# six dep1,
Expand All @@ -68,7 +68,7 @@ py_library(
py_library(
name = "clustering_centroids",
srcs = ["clustering_centroids.py"],
strict_deps = True,
strict_deps = False,
visibility = ["//visibility:public"],
deps = [
":cluster_config",
Expand All @@ -82,7 +82,7 @@ py_library(
py_library(
name = "cluster_wrapper",
srcs = ["cluster_wrapper.py"],
strict_deps = True,
strict_deps = False,
visibility = ["//visibility:public"],
deps = [
":cluster_config",
Expand All @@ -97,7 +97,7 @@ py_library(
py_library(
name = "clustering_algorithm",
srcs = ["clustering_algorithm.py"],
strict_deps = True,
strict_deps = False,
visibility = ["//visibility:public"],
deps = [
# six dep1,
Expand All @@ -109,7 +109,7 @@ py_library(
py_library(
name = "clustering_callbacks",
srcs = ["clustering_callbacks.py"],
strict_deps = True,
strict_deps = False,
visibility = ["//visibility:public"],
deps = [
# tensorflow dep1,
Expand All @@ -121,6 +121,7 @@ py_test(
name = "cluster_test",
size = "medium",
srcs = ["cluster_test.py"],
strict_deps = False,
visibility = ["//visibility:public"],
deps = [
":cluster",
Expand Down Expand Up @@ -189,6 +190,7 @@ py_test(
name = "cluster_integration_test",
size = "medium",
srcs = ["cluster_integration_test.py"],
strict_deps = False,
visibility = ["//visibility:public"],
deps = [
":cluster",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ py_library(
srcs = [
"__init__.py",
],
strict_deps = True,
strict_deps = False,
deps = [
":cluster", # buildcleaner: keep
],
Expand All @@ -20,7 +20,7 @@ py_library(
py_library(
name = "cluster",
srcs = ["cluster.py"],
strict_deps = True,
strict_deps = False,
visibility = ["//visibility:public"],
deps = [
"//tensorflow_model_optimization/python/core/clustering/keras:cluster",
Expand Down
2 changes: 1 addition & 1 deletion tensorflow_model_optimization/python/core/internal/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ licenses(["notice"])
py_library(
name = "internal",
srcs = ["__init__.py"],
strict_deps = True,
strict_deps = False,
deps = [
"//tensorflow_model_optimization/python/core/internal/tensor_encoding",
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ licenses(["notice"])
py_library(
name = "tensor_encoding",
srcs = ["__init__.py"],
strict_deps = True,
strict_deps = False,
deps = [
"//tensorflow_model_optimization/python/core/internal/tensor_encoding/core",
"//tensorflow_model_optimization/python/core/internal/tensor_encoding/encoders",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ licenses(["notice"])
py_library(
name = "core",
srcs = ["__init__.py"],
strict_deps = True,
strict_deps = False,
visibility = ["//visibility:public"],
deps = [
":core_encoder",
Expand All @@ -23,7 +23,7 @@ py_library(
py_library(
name = "core_encoder",
srcs = ["core_encoder.py"],
strict_deps = True,
strict_deps = False,
deps = [
":encoding_stage",
# six dep1,
Expand All @@ -49,7 +49,7 @@ py_strict_test(
py_library(
name = "encoding_stage",
srcs = ["encoding_stage.py"],
strict_deps = True,
strict_deps = False,
deps = [
# six dep1,
# tensorflow dep1,
Expand All @@ -74,7 +74,7 @@ py_strict_test(
py_library(
name = "gather_encoder",
srcs = ["gather_encoder.py"],
strict_deps = True,
strict_deps = False,
deps = [
":core_encoder",
# tensorflow dep1,
Expand Down Expand Up @@ -102,7 +102,7 @@ py_strict_test(
py_library(
name = "simple_encoder",
srcs = ["simple_encoder.py"],
strict_deps = True,
strict_deps = False,
deps = [
":core_encoder",
# tensorflow dep1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ licenses(["notice"])
py_library(
name = "encoders",
srcs = ["__init__.py"],
strict_deps = True,
strict_deps = False,
visibility = ["//visibility:public"],
deps = [
":common_encoders",
Expand All @@ -20,7 +20,7 @@ py_library(
py_library(
name = "common_encoders",
srcs = ["common_encoders.py"],
strict_deps = True,
strict_deps = False,
deps = [
# tensorflow dep1,
"//tensorflow_model_optimization/python/core/internal/tensor_encoding/core:core_encoder",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ licenses(["notice"])
py_library(
name = "stages",
srcs = ["__init__.py"],
strict_deps = True,
strict_deps = False,
visibility = ["//visibility:public"],
deps = [
":stages_impl",
Expand All @@ -21,7 +21,7 @@ py_library(
py_library(
name = "stages_impl",
srcs = ["stages_impl.py"],
strict_deps = True,
strict_deps = False,
deps = [
# numpy dep1,
# tensorflow dep1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ licenses(["notice"])
py_library(
name = "research",
srcs = ["__init__.py"],
strict_deps = True,
strict_deps = False,
visibility = ["//visibility:public"],
deps = [
":clipping",
Expand All @@ -23,7 +23,7 @@ py_library(
py_library(
name = "clipping",
srcs = ["clipping.py"],
strict_deps = True,
strict_deps = False,
deps = [
# tensorflow dep1,
"//tensorflow_model_optimization/python/core/internal/tensor_encoding/core:encoding_stage",
Expand All @@ -47,7 +47,7 @@ py_strict_test(
py_library(
name = "kashin",
srcs = ["kashin.py"],
strict_deps = True,
strict_deps = False,
deps = [
# numpy dep1,
# tensorflow dep1,
Expand All @@ -73,7 +73,7 @@ py_strict_test(
py_library(
name = "quantization",
srcs = ["quantization.py"],
strict_deps = True,
strict_deps = False,
deps = [
# tensorflow dep1,
"//tensorflow_model_optimization/python/core/internal/tensor_encoding/core:encoding_stage",
Expand All @@ -98,7 +98,7 @@ py_strict_test(
py_library(
name = "misc",
srcs = ["misc.py"],
strict_deps = True,
strict_deps = False,
deps = [
# tensorflow dep1,
"//tensorflow_model_optimization/python/core/internal/tensor_encoding/core:encoding_stage",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ licenses(["notice"])
py_library(
name = "testing",
srcs = ["__init__.py"],
strict_deps = True,
strict_deps = False,
visibility = ["//visibility:public"],
deps = [
":test_utils",
Expand All @@ -20,7 +20,7 @@ py_library(
py_library(
name = "test_utils",
srcs = ["test_utils.py"],
strict_deps = True,
strict_deps = False,
deps = [
# absl/testing:parameterized dep1,
# numpy dep1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ licenses(["notice"])
py_library(
name = "utils",
srcs = ["__init__.py"],
strict_deps = True,
strict_deps = False,
visibility = ["//visibility:public"],
deps = [
":py_utils",
Expand All @@ -21,7 +21,7 @@ py_library(
py_library(
name = "py_utils",
srcs = ["py_utils.py"],
strict_deps = True,
strict_deps = False,
deps = [
# numpy dep1,
# six dep1,
Expand All @@ -46,7 +46,7 @@ py_strict_test(
py_library(
name = "tf_utils",
srcs = ["tf_utils.py"],
strict_deps = True,
strict_deps = False,
deps = [
# numpy dep1,
# tensorflow dep1,
Expand Down
10 changes: 5 additions & 5 deletions tensorflow_model_optimization/python/core/keras/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ licenses(["notice"])
py_library(
name = "keras",
srcs = ["__init__.py"],
strict_deps = True,
strict_deps = False,
deps = [
":compat",
":utils",
Expand All @@ -21,7 +21,7 @@ py_library(
py_library(
name = "test_utils",
srcs = ["test_utils.py"],
strict_deps = True,
strict_deps = False,
deps = [
":compat",
# numpy dep1,
Expand All @@ -32,7 +32,7 @@ py_library(
py_library(
name = "compat",
srcs = ["compat.py"],
strict_deps = True,
strict_deps = False,
deps = [
# tensorflow dep1,
],
Expand All @@ -41,7 +41,7 @@ py_library(
py_library(
name = "utils",
srcs = ["utils.py"],
strict_deps = True,
strict_deps = False,
visibility = ["//visibility:public"],
deps = [
# tensorflow dep1,
Expand All @@ -53,7 +53,7 @@ py_library(
py_library(
name = "metrics",
srcs = ["metrics.py"],
strict_deps = True,
strict_deps = False,
deps = [
# python/eager:monitoring tensorflow dep2,
],
Expand Down
Loading
Loading