@@ -35,6 +35,7 @@ py_strict_library(
35
35
],
36
36
srcs_version = "PY3" ,
37
37
deps = [
38
+ ":cluster_utils" ,
38
39
# tensorflow dep1,
39
40
"//tensorflow_model_optimization/python/core/clustering/keras:clustering_registry" ,
40
41
"//tensorflow_model_optimization/python/core/quantization/keras:quant_ops" ,
@@ -61,6 +62,23 @@ py_test(
61
62
],
62
63
)
63
64
65
+ py_test (
66
+ name = "mnist_prune_cluster_preserve_qat_test" ,
67
+ srcs = [
68
+ "mnist_prune_cluster_preserve_qat_test.py" ,
69
+ ],
70
+ python_version = "PY3" ,
71
+ visibility = ["//visibility:private" ],
72
+ deps = [
73
+ ":default_8bit_cluster_preserve_quantize_scheme" ,
74
+ # tensorflow dep1,
75
+ "//tensorflow_model_optimization/python/core/clustering/keras/experimental:cluster" ,
76
+ "//tensorflow_model_optimization/python/core/quantization/keras:quantize" ,
77
+ "//tensorflow_model_optimization/python/core/sparsity/keras:prune" ,
78
+ "//tensorflow_model_optimization/python/core/sparsity/keras:pruning_callbacks" ,
79
+ ],
80
+ )
81
+
64
82
py_strict_library (
65
83
name = "default_8bit_cluster_preserve_quantize_scheme" ,
66
84
srcs = [
@@ -72,3 +90,21 @@ py_strict_library(
72
90
"//tensorflow_model_optimization/python/core/quantization/keras/default_8bit:default_8bit_quantize_scheme" ,
73
91
],
74
92
)
93
+
94
+ py_test (
95
+ name = "cluster_preserve_integration_test" ,
96
+ srcs = [
97
+ "cluster_preserve_integration_test.py" ,
98
+ ],
99
+ python_version = "PY3" ,
100
+ visibility = ["//visibility:private" ],
101
+ deps = [
102
+ ":default_8bit_cluster_preserve_quantize_scheme" ,
103
+ # tensorflow dep1,
104
+ "//tensorflow_model_optimization/python/core/clustering/keras:cluster" ,
105
+ "//tensorflow_model_optimization/python/core/clustering/keras:clustering_registry" ,
106
+ "//tensorflow_model_optimization/python/core/clustering/keras/experimental:cluster" ,
107
+ "//tensorflow_model_optimization/python/core/quantization/keras:quantize" ,
108
+ "//tensorflow_model_optimization/python/core/quantization/keras:quantize_config" ,
109
+ ],
110
+ )
0 commit comments