Skip to content

Commit db976e4

Browse files
authored
change: set TF 2.1.1 as highest py2 version for TF (aws#1859)
1 parent 2a36974 commit db976e4

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/sagemaker/tensorflow/defaults.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
"""Placeholder docstring"""
1414
from __future__ import absolute_import
1515

16-
LATEST_PY2_VERSION = "2.1.0"
16+
LATEST_PY2_VERSION = "2.1.1"

src/sagemaker/tensorflow/estimator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class TensorFlow(Framework):
3535
_framework_name = "tensorflow"
3636

3737
_HIGHEST_LEGACY_MODE_ONLY_VERSION = version.Version("1.10.0")
38-
_HIGHEST_PYTHON_2_VERSION = version.Version("2.1.0")
38+
_HIGHEST_PYTHON_2_VERSION = version.Version("2.1.1")
3939

4040
def __init__(
4141
self,

tests/unit/sagemaker/tensorflow/test_estimator_init.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,18 @@ def _build_tf(sagemaker_session, **kwargs):
3939

4040
@patch("sagemaker.fw_utils.python_deprecation_warning")
4141
def test_estimator_py2_deprecation_warning(warning, sagemaker_session):
42-
estimator = _build_tf(sagemaker_session, framework_version="2.1.0", py_version="py2")
42+
estimator = _build_tf(sagemaker_session, framework_version="2.1.1", py_version="py2")
4343

4444
assert estimator.py_version == "py2"
45-
warning.assert_called_with("tensorflow", "2.1.0")
45+
warning.assert_called_with("tensorflow", "2.1.1")
4646

4747

4848
def test_py2_version_deprecated(sagemaker_session):
4949
with pytest.raises(AttributeError) as e:
50-
_build_tf(sagemaker_session, framework_version="2.1.1", py_version="py2")
50+
_build_tf(sagemaker_session, framework_version="2.1.2", py_version="py2")
5151

5252
msg = (
53-
"Python 2 containers are only available with 2.1.0 and lower versions. "
53+
"Python 2 containers are only available with 2.1.1 and lower versions. "
5454
"Please use a Python 3 container."
5555
)
5656
assert msg in str(e.value)

0 commit comments

Comments
 (0)