Skip to content

Commit

Permalink
Merge pull request tensorflow#421 from arovir01:toupstream/clustering…
Browse files Browse the repository at this point in the history
…_docgen

PiperOrigin-RevId: 322239236
  • Loading branch information
tensorflower-gardener committed Jul 20, 2020
2 parents 0cf7882 + dcb5f92 commit 15e730a
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tensorflow_model_optimization/python/core/api/BUILD
Expand Up @@ -8,6 +8,8 @@ py_library(
name = "api",
srcs = [
"__init__.py",
"clustering/__init__.py",
"clustering/keras/__init__.py",
"quantization/__init__.py",
"quantization/keras/__init__.py",
"quantization/keras/quantizers/__init__.py",
Expand All @@ -16,6 +18,7 @@ py_library(
],
srcs_version = "PY2AND3",
deps = [
"//tensorflow_model_optimization/python/core/clustering/keras",
"//tensorflow_model_optimization/python/core/quantization/keras",
"//tensorflow_model_optimization/python/core/sparsity/keras",
],
Expand Down
1 change: 1 addition & 0 deletions tensorflow_model_optimization/python/core/api/__init__.py
Expand Up @@ -13,5 +13,6 @@
# limitations under the License.
# ==============================================================================
"""Import API modules for Tensorflow Model Optimization."""
from tensorflow_model_optimization.python.core.api import clustering
from tensorflow_model_optimization.python.core.api import quantization
from tensorflow_model_optimization.python.core.api import sparsity
@@ -0,0 +1,16 @@
# Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""Module containing code for clustering."""
from tensorflow_model_optimization.python.core.api.clustering import keras
@@ -0,0 +1,22 @@
# Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""Module containing clustering code built on Keras abstractions."""
# pylint: disable=g-bad-import-order
from tensorflow_model_optimization.python.core.clustering.keras.cluster import cluster_scope
from tensorflow_model_optimization.python.core.clustering.keras.cluster import cluster_weights
from tensorflow_model_optimization.python.core.clustering.keras.cluster import strip_clustering

from tensorflow_model_optimization.python.core.clustering.keras.cluster_config import CentroidInitialization
# pylint: enable=g-bad-import-order

0 comments on commit 15e730a

Please sign in to comment.