Skip to content

Commit 80f7875

Browse files
committed
Add logic to Tf estimator
1 parent 50cf9aa commit 80f7875

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/sagemaker/tensorflow/estimator.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,13 @@ def __init__(
176176
logger.warning(
177177
fw.python_deprecation_warning(self._framework_name, defaults.LATEST_PY2_VERSION)
178178
)
179-
self.framework_version = framework_version
179+
# TF training and inference versions do not have a one-to-one connection. This mismatch
180+
# is accommodated by the underlying dictionary. The key of dictionary relates to the inference
181+
# version and the value relates to training version.
182+
training_inference_version_mismatch_dict = {"2.16.1": "2.16.2"}
183+
self.framework_version = training_inference_version_mismatch_dict.get(
184+
framework_version, framework_version
185+
)
180186
self.py_version = py_version
181187
self.instance_type = instance_type
182188

0 commit comments

Comments
 (0)