File tree Expand file tree Collapse file tree 4 files changed +42
-0
lines changed
tensorflow_model_optimization/python/core/api Expand file tree Collapse file tree 4 files changed +42
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ py_library(
8
8
name = "api" ,
9
9
srcs = [
10
10
"__init__.py" ,
11
+ "clustering/__init__.py" ,
12
+ "clustering/keras/__init__.py" ,
11
13
"quantization/__init__.py" ,
12
14
"quantization/keras/__init__.py" ,
13
15
"quantization/keras/quantizers/__init__.py" ,
@@ -16,6 +18,7 @@ py_library(
16
18
],
17
19
srcs_version = "PY2AND3" ,
18
20
deps = [
21
+ "//tensorflow_model_optimization/python/core/clustering/keras" ,
19
22
"//tensorflow_model_optimization/python/core/quantization/keras" ,
20
23
"//tensorflow_model_optimization/python/core/sparsity/keras" ,
21
24
],
Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
# ==============================================================================
15
15
"""Import API modules for Tensorflow Model Optimization."""
16
+ from tensorflow_model_optimization .python .core .api import clustering
16
17
from tensorflow_model_optimization .python .core .api import quantization
17
18
from tensorflow_model_optimization .python .core .api import sparsity
Original file line number Diff line number Diff line change
1
+ # Copyright 2020 The TensorFlow Authors. All Rights Reserved.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ # ==============================================================================
15
+ """Module containing code for clustering."""
16
+ from tensorflow_model_optimization .python .core .api .clustering import keras
Original file line number Diff line number Diff line change
1
+ # Copyright 2020 The TensorFlow Authors. All Rights Reserved.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ # ==============================================================================
15
+ """Module containing clustering code built on Keras abstractions."""
16
+ # pylint: disable=g-bad-import-order
17
+ from tensorflow_model_optimization .python .core .clustering .keras .cluster import cluster_scope
18
+ from tensorflow_model_optimization .python .core .clustering .keras .cluster import cluster_weights
19
+ from tensorflow_model_optimization .python .core .clustering .keras .cluster import strip_clustering
20
+
21
+ from tensorflow_model_optimization .python .core .clustering .keras .cluster_config import CentroidInitialization
22
+ # pylint: enable=g-bad-import-order
You can’t perform that action at this time.
0 commit comments