Skip to content

Commit abbb424

Browse files
committed
update docs based on latest zwei changes
1 parent 7555d69 commit abbb424

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

doc/v2.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,22 @@ To use those versions of TensorFlow, you must specify the Docker image URI expli
8080
and configure settings via hyperparameters or environment variables rather than using SDK parameters.
8181
For more information, see `Upgrade from Legacy TensorFlow Support <frameworks/tensorflow/upgrade_from_legacy.html>`_.
8282

83+
Parameter Changes for ``sagemaker.model.Model``
84+
===============================================
85+
86+
The parameter order for :class:`sagemaker.model.Model` changed: instead of ``model_data`` being first, ``image`` now is first.
87+
As a result, ``model_data`` has now been made into an optional parameter.
88+
89+
If you are using the :class:`sagemaker.model.Model` class, your code should be changed as follows:
90+
91+
.. code:: python
92+
93+
# v1.x
94+
Model("s3://bucket/path/model.tar.gz", "my-image:latest")
95+
96+
# v2.0 and later
97+
Model("my-image:latest", model_data="s3://bucket/path/model.tar.gz")
98+
8399
Dependency Changes
84100
==================
85101

@@ -149,3 +165,8 @@ TensorFlow Serving
149165
------------------
150166

151167
If you are using the ``sagemaker.tensorflow.serving.Model`` class, the tool does not take care of adding a framework version or changing it to ``sagemaker.tensorflow.TensorFlowModel``.
168+
169+
``sagemaker.model.Model``
170+
-------------------------
171+
172+
If you are using the :class:`sagemaker.model.Model` class, the tool does not take care of switching the order between ``model_data`` and ``image``.

0 commit comments

Comments
 (0)