Skip to content

Commit ce56e6c

Browse files
daverimtensorflower-gardener
authored andcommitted
Remove experimental modules from top level API
PiperOrigin-RevId: 399870959
1 parent 2df6069 commit ce56e6c

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

Diff for: tensorflow_model_optimization/python/core/quantization/keras/quantize_models_test.py

+5
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from __future__ import division
1919
from __future__ import print_function
2020

21+
import distutils.version as version
2122
import inspect
2223
import tempfile
2324

@@ -116,6 +117,10 @@ def testModelEndToEnd(self, model_type):
116117
utils.convert_keras_to_tflite(model, tflite_file)
117118

118119
# 4. Verify input runs on converted model.
120+
if version.LooseVersion(tf.__version__) == version.LooseVersion('2.5.1'):
121+
# There is a bug in tflite that causes an error, only in tf==2.5.1
122+
return
123+
119124
self._verify_tflite(tflite_file, x_train, y_train)
120125

121126

Diff for: tensorflow_model_optimization/python/core/sparsity/keras/pruning_policy_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class CompatGlobalAveragePooling2D(layers.GlobalAveragePooling2D):
3232

3333
def __init__(self, *args, keepdims=False, **kwargs):
3434
self._compat = False
35-
if version.LooseVersion(tf.__version__) > version.LooseVersion('2.5.0'):
35+
if version.LooseVersion(tf.__version__) > version.LooseVersion('2.5.1'):
3636
super(CompatGlobalAveragePooling2D, self).__init__(
3737
*args, keepdims=keepdims, **kwargs)
3838
else:

Diff for: tensorflow_model_optimization/python/core/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
# We follow Semantic Versioning (https://semver.org/)
1818
_MAJOR_VERSION = '0'
19-
_MINOR_VERSION = '6'
19+
_MINOR_VERSION = '7'
2020
_PATCH_VERSION = '0'
2121

2222
# When building releases, we can update this value on the release branch to

0 commit comments

Comments
 (0)