Skip to content

Remove experimental modules from top level API #848

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from __future__ import division
from __future__ import print_function

import distutils.version as version
import inspect
import tempfile

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

# 4. Verify input runs on converted model.
if version.LooseVersion(tf.__version__) == version.LooseVersion('2.5.1'):
# There is a bug in tflite that causes an error, only in tf==2.5.1
return

self._verify_tflite(tflite_file, x_train, y_train)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class CompatGlobalAveragePooling2D(layers.GlobalAveragePooling2D):

def __init__(self, *args, keepdims=False, **kwargs):
self._compat = False
if version.LooseVersion(tf.__version__) > version.LooseVersion('2.5.0'):
if version.LooseVersion(tf.__version__) > version.LooseVersion('2.5.1'):
super(CompatGlobalAveragePooling2D, self).__init__(
*args, keepdims=keepdims, **kwargs)
else:
Expand Down
2 changes: 1 addition & 1 deletion tensorflow_model_optimization/python/core/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# We follow Semantic Versioning (https://semver.org/)
_MAJOR_VERSION = '0'
_MINOR_VERSION = '6'
_MINOR_VERSION = '7'
_PATCH_VERSION = '0'

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