Skip to content
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

Adapt Example for TF2.14 AutoTrackable API Change #1290

Merged
merged 3 commits into from
Sep 27, 2023
Merged
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 @@ -53,7 +53,7 @@ def evaluate(model):
accuracy (float): evaluation result, the larger is better.
"""
from neural_compressor.model import Model
from tensorflow.python.training.tracking.tracking import AutoTrackable
from tensorflow.python.trackable.autotrackable import AutoTrackable
warmup = 5
iteration = -1
if args.benchmark and args.mode == 'performance':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def evaluate(model):
accuracy (float): evaluation result, the larger is better.
"""
from neural_compressor.model import Model
from tensorflow.python.training.tracking.tracking import AutoTrackable
from tensorflow.python.trackable.autotrackable import AutoTrackable
warmup = 5
iteration = -1
if args.benchmark and args.mode == 'performance':
Expand Down
2 changes: 1 addition & 1 deletion neural_compressor/adaptor/tf_utils/graph_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
version1_lte_version2,
)

TF_SUPPORTED_MAX_VERSION = "2.13.0"
TF_SUPPORTED_MAX_VERSION = "2.14.0"
TF_SUPPORTED_MIN_VERSION = "1.14.0"

logger = logging.getLogger("neural_compressor")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
version1_lte_version2,
)

TF_SUPPORTED_MAX_VERSION = "2.13.0"
TF_SUPPORTED_MAX_VERSION = "2.14.0"
TF_SUPPORTED_MIN_VERSION = "1.14.0"

logger = logging.getLogger("neural_compressor")
Expand Down