@@ -35,7 +35,72 @@ If you are executing this pip install command in a notebook, make sure to restar
35
35
Changes
36
36
*******
37
37
38
- To see what changes have been made, see the `CHANGELOG <https://github.com/aws/sagemaker-python-sdk/blob/zwei/CHANGELOG.md >`_.
38
+ This section is for major changes that may require updates to your SageMaker Python SDK code.
39
+ You can also see what changes have been made in the `CHANGELOG <https://github.com/aws/sagemaker-python-sdk/blob/zwei/CHANGELOG.md >`_.
40
+
41
+ Require ``framework_version `` and ``py_version `` for Frameworks
42
+ ===============================================================
43
+
44
+ Framework estimator and model classes now require ``framework_version `` and ``py_version `` instead of supplying defaults,
45
+ unless an image URI is explicitly supplied.
46
+
47
+ For example:
48
+
49
+ .. code :: python
50
+
51
+ from sagemaker.tensorflow import TensorFlow
52
+
53
+ TensorFlow(
54
+ entry_point = " script.py" ,
55
+ framework_version = " 2.2.0" , # now required
56
+ py_version = " py37" , # now required
57
+ role = " my-role" ,
58
+ train_instance_type = " ml.m5.xlarge" ,
59
+ train_instance_count = 1 ,
60
+ )
61
+
62
+ from sagemaker.mxnet import MXNetModel
63
+
64
+ MXNetModel(
65
+ model_data = " s3://bucket/model.tar.gz" ,
66
+ role = " my-role" ,
67
+ entry_point = " inference.py" ,
68
+ framework_version = " 1.6.0" , # now required
69
+ py_version = " py3" , # now required
70
+ )
71
+
72
+ Deprecate Legacy TensorFlow
73
+ ===========================
74
+
75
+ TensorFlow versions 1.4-1.10 and some variations of versions 1.11-1.12
76
+ (see `What Constitutes "Legacy TensorFlow Support" <frameworks/tensorflow/upgrade_from_legacy.html#what-constitutes-legacy-tensorflow-support >`_)
77
+ are no longer natively supported by the SageMaker Python SDK.
78
+
79
+ To use those versions of TensorFlow, you must specify the Docker image URI explicitly,
80
+ and configure settings via hyperparameters or environment variables rather than using SDK parameters.
81
+ For more information, see `Upgrade from Legacy TensorFlow Support <frameworks/tensorflow/upgrade_from_legacy.html >`_.
82
+
83
+ Dependency Changes
84
+ ==================
85
+
86
+ SciPy
87
+ -----
88
+
89
+ SciPy is no longer a required dependency of the SageMaker Python SDK.
90
+
91
+ If you use :func: `sagemaker.amazon.common.write_spmatrix_to_sparse_tensor ` and
92
+ don't already install SciPy in your environment, you can use our ``scipy `` installation target:
93
+
94
+ .. code :: bash
95
+
96
+ pip install sagemaker[scipy]
97
+
98
+ TensorFlow
99
+ ----------
100
+
101
+ The ``tensorflow `` installation target has been removed, as it is no longer needed for any SageMaker Python SDK functionality.
102
+
103
+ If you want to install TensorFlow, see `the TensorFlow documentation <https://www.tensorflow.org/install >`_.
39
104
40
105
*******************************
41
106
Automatically Upgrade Your Code
0 commit comments