Skip to content

Commit 6f96caa

Browse files
committed
Update PQAT public API.
Change-Id: Iedb5507868b2d6508ec0898de37127e8ca996823
1 parent b65bd84 commit 6f96caa

File tree

5 files changed

+21
-5
lines changed

5 files changed

+21
-5
lines changed

tensorflow_model_optimization/python/core/api/BUILD

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ py_library(
1212
"quantization/keras/__init__.py",
1313
"quantization/keras/default_8bit/__init__.py",
1414
"quantization/keras/quantizers/__init__.py",
15-
"quantization/keras/collaborative_optimization_scheme/__init__.py",
1615
"sparsity/__init__.py",
1716
"sparsity/keras/__init__.py",
17+
"experimental/__init__.py",
18+
"experimental/combine/__init__.py",
1819
],
1920
srcs_version = "PY3",
2021
deps = [

tensorflow_model_optimization/python/core/api/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019 The TensorFlow Authors. All Rights Reserved.
1+
# Copyright 2020 The TensorFlow Authors. All Rights Reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -16,3 +16,4 @@
1616
from tensorflow_model_optimization.python.core.api import clustering
1717
from tensorflow_model_optimization.python.core.api import quantization
1818
from tensorflow_model_optimization.python.core.api import sparsity
19+
from tensorflow_model_optimization.python.core.api import experimental
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 experimental features."""
16+
from tensorflow_model_optimization.python.core.api.experimental import combine
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
# ==============================================================================
15-
"""Module containing experimental Quantization schemes."""
16-
15+
"""Module containing collaborative optimization code."""
1716
from tensorflow_model_optimization.python.core.quantization.keras.collaborative_optimizations.prune_preserve.default_8bit_prune_preserve_quantize_scheme import (
1817
Default8BitPrunePreserveQuantizeScheme, )

tensorflow_model_optimization/python/core/api/quantization/keras/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
# submodules
1919
from tensorflow_model_optimization.python.core.api.quantization.keras import quantizers
2020
from tensorflow_model_optimization.python.core.api.quantization.keras import default_8bit
21-
from tensorflow_model_optimization.python.core.api.quantization.keras import collaborative_optimization_scheme
2221

2322
# quantize all layers with default quantization implementation.
2423
from tensorflow_model_optimization.python.core.quantization.keras.quantize import quantize_model

0 commit comments

Comments
 (0)