You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/using_tf.rst
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ To train a TensorFlow model by using the SageMaker Python SDK:
42
42
Prepare a Script Mode Training Script
43
43
======================================
44
44
45
-
Your TensorFlow training script must be a Python 2.7-or 3.6-compatible source file.
45
+
Your TensorFlow training script must be a Python 2.7-, 3.6- or 3.7-compatible source file.
46
46
47
47
The training script is very similar to a training script you might run outside of SageMaker, but you can access useful properties about the training environment through various environment variables, including the following:
48
48
@@ -143,6 +143,11 @@ To use Script Mode, set at least one of these args
143
143
- ``py_version='py3'``
144
144
- ``script_mode=True``
145
145
146
+
To use Python 3.7, please specify both of the args:
147
+
148
+
- ``py_version='py37'``
149
+
- ``framework_version='1.15.2'``
150
+
146
151
When using Script Mode, your training script needs to accept the following args:
Script Mode TensorFlow Docker images support both Python 2.7 and Python 3.6. The Docker images extend Ubuntu 16.04.
72
+
Script Mode TensorFlow Docker images support Python 2.7 and Python 3.6, Python 3.7 for TensorFlow version 1.15.2. The Docker images extend Ubuntu 16.04.
73
73
74
74
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.
75
75
Alternatively, you can build your own image by following the instructions in the SageMaker TensorFlow containers
0 commit comments