Skip to content

Commit

Permalink
Adapt Example for TF2.14 AutoTrackable API Change (#1290)
Browse files Browse the repository at this point in the history
Signed-off-by: zehao-intel <[email protected]>
(cherry picked from commit 9079ff1)
  • Loading branch information
zehao-intel authored and chensuyue committed Sep 27, 2023
1 parent e7cbd0e commit 424cf3a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
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

0 comments on commit 424cf3a

Please sign in to comment.