File tree Expand file tree Collapse file tree 3 files changed +39
-0
lines changed
tensorflow_model_optimization/python/core/api Expand file tree Collapse file tree 3 files changed +39
-0
lines changed Original file line number Diff line number Diff line change 1313# limitations under the License.
1414# ==============================================================================
1515"""Import API modules for Tensorflow Model Optimization."""
16+ from tensorflow_model_optimization .python .core .api import clustering
1617from tensorflow_model_optimization .python .core .api import quantization
1718from 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