Skip to content

Commit dcb5f92

Browse files
committed
Add clustering module to API docs generator
1 parent 8465279 commit dcb5f92

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

tensorflow_model_optimization/python/core/api/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@
1313
# limitations under the License.
1414
# ==============================================================================
1515
"""Import API modules for Tensorflow Model Optimization."""
16+
from tensorflow_model_optimization.python.core.api import clustering
1617
from tensorflow_model_optimization.python.core.api import quantization
1718
from tensorflow_model_optimization.python.core.api import sparsity
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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

0 commit comments

Comments
 (0)