Skip to content

Commit b8f00ff

Browse files
authored
Set TensorFlow default version to 1.8 (#242)
* Update default TensorFlow version to 1.8 * Update changelog
1 parent 03b9849 commit b8f00ff

File tree

5 files changed

+23
-35
lines changed

5 files changed

+23
-35
lines changed

CHANGELOG.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ CHANGELOG
44

55
1.4.3dev
66
========
7+
* feature: Estimators: add support for TensorFlow 1.7.0
8+
* feature: Estimators: add support for TensorFlow 1.8.0
79
* feature: Allow Local Serving of Models in S3
810
* enhancement: Allow option for ``HyperparameterTuner`` to not include estimator metadata in job
911
* bug-fix: Estimators: Join tensorboard thread after fitting

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ TensorFlow SageMaker Estimators allow you to run your own TensorFlow
215215
training algorithms on SageMaker Learner, and to host your own TensorFlow
216216
models on SageMaker Hosting.
217217

218-
Supported versions of TensorFlow: ``1.4.1``, ``1.5.0``, ``1.6.0``.
218+
Supported versions of TensorFlow: ``1.4.1``, ``1.5.0``, ``1.6.0``, ``1.7.0``, ``1.8.0``.
219219

220220
More details at `TensorFlow SageMaker Estimators and Models`_.
221221

src/sagemaker/tensorflow/README.rst

Lines changed: 16 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ TensorFlow SageMaker Estimators allow you to run your own TensorFlow
77
training algorithms on SageMaker Learner, and to host your own TensorFlow
88
models on SageMaker Hosting.
99

10-
Supported versions of TensorFlow: ``1.4.1``, ``1.5.0``, ``1.6.0``.
10+
Supported versions of TensorFlow: ``1.4.1``, ``1.5.0``, ``1.6.0``, ``1.7.0``, ``1.8.0``.
1111

1212
Training with TensorFlow
1313
~~~~~~~~~~~~~~~~~~~~~~~~
@@ -41,8 +41,7 @@ estimator.
4141
Preparing the TensorFlow training script
4242
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4343

44-
Your TensorFlow training script must be a **Python 2.7** source file. The current supported TensorFlow
45-
versions are **1.6.0 (default)**, **1.5.0**, and **1.4.1**. The SageMaker TensorFlow docker image
44+
Your TensorFlow training script must be a **Python 2.7** source file. The SageMaker TensorFlow docker image
4645
uses this script by calling specifically-named functions from this script.
4746

4847
The training script **must contain** the following:
@@ -754,36 +753,22 @@ A example with ``input_fn`` and ``output_fn`` above can be found in
754753
SageMaker TensorFlow Docker containers
755754
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
756755

757-
The TensorFlow Docker images support Python 2.7 and have the following Python modules installed:
758-
759-
+------------------------+------------------+------------------+------------------+
760-
| Dependencies | tensorflow 1.4.1 | tensorflow 1.5.0 | tensorflow 1.6.0 |
761-
+------------------------+------------------+------------------+------------------+
762-
| boto3 | 1.4.7 | 1.5.22 | 1.6.21 |
763-
+------------------------+------------------+------------------+------------------+
764-
| botocore | 1.5.92 | 1.8.36 | 1.9.21 |
765-
+------------------------+------------------+------------------+------------------+
766-
| grpcio | 1.7.0 | 1.9.0 | 1.10.0 |
767-
+------------------------+------------------+------------------+------------------+
768-
| numpy | 1.13.3 | 1.14.0 | 1.14.2 |
769-
+------------------------+------------------+------------------+------------------+
770-
| pandas | 0.21.0 | 0.22.0 | 0.22.0 |
771-
+------------------------+------------------+------------------+------------------+
772-
| protobuf | 3.4.0 | 3.5.1 | 3.5.2 |
773-
+------------------------+------------------+------------------+------------------+
774-
| scikit-learn | 0.19.1 | 0.19.1 | 0.19.1 |
775-
+------------------------+------------------+------------------+------------------+
776-
| scipy | 1.0.0 | 1.0.0 | 1.0.1 |
777-
+------------------------+------------------+------------------+------------------+
778-
| sklearn | 0.0 | 0.0 | 0.0 |
779-
+------------------------+------------------+------------------+------------------+
780-
| tensorflow | 1.4.1 | 1.5.0 | 1.6.0 |
781-
+------------------------+------------------+------------------+------------------+
782-
| tensorflow-serving-api | 1.4.0 | 1.5.0 | 1.5.0 |
783-
+------------------------+------------------+------------------+------------------+
756+
The TensorFlow Docker images support Python 2.7. They include the following Python packages:
757+
758+
- boto3
759+
- botocore
760+
- grpcio
761+
- numpy
762+
- pandas
763+
- protobuf
764+
- scikit-learn
765+
- scipy
766+
- sklearn
767+
- tensorflow
768+
- tensorflow-serving-api
784769

785770
The Docker images extend Ubuntu 16.04.
786771

787772
You can select version of TensorFlow by passing a ``framework_version`` keyword arg to the TensorFlow Estimator constructor. Currently supported versions are listed in the table above. You can also set ``framework_version`` to only specify major and minor version, e.g ``1.6``, which will cause your training script to be run on the latest supported patch version of that minor version, which in this example would be 1.6.0.
788773

789-
You can visit the SageMaker TensorFlow containers repository here: https://github.com/aws/sagemaker-tensorflow-containers/
774+
For more information on the contents of the images, see the SageMaker TensorFlow containers repository here: https://github.com/aws/sagemaker-tensorflow-containers/

src/sagemaker/tensorflow/defaults.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
# language governing permissions and limitations under the License.
1313
from __future__ import absolute_import
1414

15-
TF_VERSION = '1.6'
15+
TF_VERSION = '1.8'

tests/conftest.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ def sagemaker_local_session(boto_config):
7070
return LocalSession(boto_session=boto_session)
7171

7272

73-
@pytest.fixture(scope='module', params=['1.4', '1.4.1', '1.5', '1.5.0', '1.6', '1.6.0'])
73+
@pytest.fixture(scope='module', params=['1.4', '1.4.1', '1.5', '1.5.0', '1.6', '1.6.0',
74+
'1.7', '1.7.0', '1.8', '1.8.0'])
7475
def tf_version(request):
7576
return request.param
7677

@@ -85,7 +86,7 @@ def chainer_version(request):
8586
return request.param
8687

8788

88-
@pytest.fixture(scope='module', params=['1.4.1', '1.5.0', '1.6.0'])
89+
@pytest.fixture(scope='module', params=['1.4.1', '1.5.0', '1.6.0', '1.7.0', '1.8.0'])
8990
def tf_full_version(request):
9091
return request.param
9192

0 commit comments

Comments
 (0)