Skip to content

Commit ab4f1c0

Browse files
authored
Upgrade to TensorFlow 1.12 (#588)
* Upgrade to TensorFlow 1.12 * Update CHANGELOG.rst * Update README
1 parent b160988 commit ab4f1c0

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ CHANGELOG
1414
* doc-fix: Add missing classes to API docs
1515
* doc-fix: Add information on necessary AWS permissions
1616
* bug-fix: Remove PyYAML to let docker-compose install the right version
17+
* feature: Update TensorFlow latest version to 1.12
1718
* enhancement: Add Model.transformer()
1819
* bug-fix: HyperparameterTuner: make ``include_cls_metadata`` default to ``False`` for everything except Frameworks
1920

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ TensorFlow SageMaker Estimators
388388
389389
By using TensorFlow SageMaker ``Estimators``, you can train and host TensorFlow models on Amazon SageMaker.
390390
391-
Supported versions of TensorFlow: ``1.4.1``, ``1.5.0``, ``1.6.0``, ``1.7.0``, ``1.8.0``, ``1.9.0``, ``1.10.0``, ``1.11.0``.
391+
Supported versions of TensorFlow: ``1.4.1``, ``1.5.0``, ``1.6.0``, ``1.7.0``, ``1.8.0``, ``1.9.0``, ``1.10.0``, ``1.11.0``, ``1.12.0``.
392392
393393
Supported versions of TensorFlow for Elastic Inference: ``1.11.0``.
394394

src/sagemaker/tensorflow/README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ Please note that the following args are not permitted when using Script Mode:
148148
149149
tf_estimator = TensorFlow(entry_point='tf-train.py', role='SageMakerRole',
150150
train_instance_count=1, train_instance_type='ml.p2.xlarge',
151-
framework_version='1.11', py_version='py3')
151+
framework_version='1.12', py_version='py3')
152152
tf_estimator.fit('s3://bucket/path/to/training/data')
153153
154154
Where the S3 url is a path to your training data, within Amazon S3. The
@@ -417,9 +417,9 @@ The containers include the following Python packages:
417417
+--------------------------------+---------------+-------------------+
418418
| curl | Latest | Latest |
419419
+--------------------------------+---------------+-------------------+
420-
| tensorflow | 1.11.0 | 1.11.0 |
420+
| tensorflow | 1.12.0 | 1.12.0 |
421421
+--------------------------------+---------------+-------------------+
422-
| tensorflow-serving-api | 1.11.0 | None |
422+
| tensorflow-serving-api | 1.12.0 | None |
423423
+--------------------------------+---------------+-------------------+
424424
| sagemaker-containers | >=2.3.5 | >=2.3.5 |
425425
+--------------------------------+---------------+-------------------+

src/sagemaker/tensorflow/estimator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ class TensorFlow(Framework):
171171
"""Handle end-to-end training and deployment of user-provided TensorFlow code."""
172172

173173
__framework_name__ = 'tensorflow'
174+
LATEST_VERSION = '1.12'
174175

175176
def __init__(self, training_steps=None, evaluation_steps=None, checkpoint_path=None, py_version='py2',
176177
framework_version=None, model_dir=None, requirements_file='', image_name=None,

tests/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from sagemaker.pytorch import PyTorch
2727
from sagemaker.rl import RLEstimator
2828
from sagemaker.sklearn.defaults import SKLEARN_VERSION
29-
from sagemaker.tensorflow.defaults import TF_VERSION
29+
from sagemaker.tensorflow.estimator import TensorFlow
3030

3131
DEFAULT_REGION = 'us-west-2'
3232

@@ -43,7 +43,7 @@ def pytest_addoption(parser):
4343
parser.addoption('--rl-ray-full-version', action='store',
4444
default=RLEstimator.RAY_LATEST_VERSION)
4545
parser.addoption('--sklearn-full-version', action='store', default=SKLEARN_VERSION)
46-
parser.addoption('--tf-full-version', action='store', default=TF_VERSION)
46+
parser.addoption('--tf-full-version', action='store', default=TensorFlow.LATEST_VERSION)
4747

4848

4949
def pytest_configure(config):
@@ -126,7 +126,7 @@ def sklearn_version(request):
126126

127127
@pytest.fixture(scope='module', params=['1.4', '1.4.1', '1.5', '1.5.0', '1.6', '1.6.0',
128128
'1.7', '1.7.0', '1.8', '1.8.0', '1.9', '1.9.0',
129-
'1.10', '1.10.0', '1.11', '1.11.0'])
129+
'1.10', '1.10.0', '1.11', '1.11.0', '1.12', '1.12.0'])
130130
def tf_version(request):
131131
return request.param
132132

0 commit comments

Comments
 (0)