Skip to content

Set TensorFlow default version to 1.8 #242

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 20, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ CHANGELOG

1.4.3dev
========
* feature: Estimators: add support for TensorFlow 1.7.0
* feature: Estimators: add support for TensorFlow 1.8.0
* feature: Allow Local Serving of Models in S3
* enhancement: Allow option for ``HyperparameterTuner`` to not include estimator metadata in job
* bug-fix: Estimators: Join tensorboard thread after fitting
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ TensorFlow SageMaker Estimators allow you to run your own TensorFlow
training algorithms on SageMaker Learner, and to host your own TensorFlow
models on SageMaker Hosting.

Supported versions of TensorFlow: ``1.4.1``, ``1.5.0``, ``1.6.0``.
Supported versions of TensorFlow: ``1.4.1``, ``1.5.0``, ``1.6.0``, ``1.7.0``, ``1.8.0``.

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

Expand Down
47 changes: 16 additions & 31 deletions src/sagemaker/tensorflow/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ TensorFlow SageMaker Estimators allow you to run your own TensorFlow
training algorithms on SageMaker Learner, and to host your own TensorFlow
models on SageMaker Hosting.

Supported versions of TensorFlow: ``1.4.1``, ``1.5.0``, ``1.6.0``.
Supported versions of TensorFlow: ``1.4.1``, ``1.5.0``, ``1.6.0``, ``1.7.0``, ``1.8.0``.

Training with TensorFlow
~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -41,8 +41,7 @@ estimator.
Preparing the TensorFlow training script
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

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

The TensorFlow Docker images support Python 2.7 and have the following Python modules installed:

+------------------------+------------------+------------------+------------------+
| Dependencies | tensorflow 1.4.1 | tensorflow 1.5.0 | tensorflow 1.6.0 |
+------------------------+------------------+------------------+------------------+
| boto3 | 1.4.7 | 1.5.22 | 1.6.21 |
+------------------------+------------------+------------------+------------------+
| botocore | 1.5.92 | 1.8.36 | 1.9.21 |
+------------------------+------------------+------------------+------------------+
| grpcio | 1.7.0 | 1.9.0 | 1.10.0 |
+------------------------+------------------+------------------+------------------+
| numpy | 1.13.3 | 1.14.0 | 1.14.2 |
+------------------------+------------------+------------------+------------------+
| pandas | 0.21.0 | 0.22.0 | 0.22.0 |
+------------------------+------------------+------------------+------------------+
| protobuf | 3.4.0 | 3.5.1 | 3.5.2 |
+------------------------+------------------+------------------+------------------+
| scikit-learn | 0.19.1 | 0.19.1 | 0.19.1 |
+------------------------+------------------+------------------+------------------+
| scipy | 1.0.0 | 1.0.0 | 1.0.1 |
+------------------------+------------------+------------------+------------------+
| sklearn | 0.0 | 0.0 | 0.0 |
+------------------------+------------------+------------------+------------------+
| tensorflow | 1.4.1 | 1.5.0 | 1.6.0 |
+------------------------+------------------+------------------+------------------+
| tensorflow-serving-api | 1.4.0 | 1.5.0 | 1.5.0 |
+------------------------+------------------+------------------+------------------+
The TensorFlow Docker images support Python 2.7. They include the following Python packages:

- boto3
- botocore
- grpcio
- numpy
- pandas
- protobuf
- scikit-learn
- scipy
- sklearn
- tensorflow
- tensorflow-serving-api

The Docker images extend Ubuntu 16.04.

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.

You can visit the SageMaker TensorFlow containers repository here: https://github.com/aws/sagemaker-tensorflow-containers/
For more information on the contents of the images, see the SageMaker TensorFlow containers repository here: https://github.com/aws/sagemaker-tensorflow-containers/
2 changes: 1 addition & 1 deletion src/sagemaker/tensorflow/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# language governing permissions and limitations under the License.
from __future__ import absolute_import

TF_VERSION = '1.6'
TF_VERSION = '1.8'
5 changes: 3 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ def sagemaker_local_session(boto_config):
return LocalSession(boto_session=boto_session)


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

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


@pytest.fixture(scope='module', params=['1.4.1', '1.5.0', '1.6.0'])
@pytest.fixture(scope='module', params=['1.4.1', '1.5.0', '1.6.0', '1.7.0', '1.8.0'])
def tf_full_version(request):
return request.param

Expand Down