@@ -64,7 +64,7 @@ def __init__(
64
64
model_data ,
65
65
role ,
66
66
entry_point ,
67
- image = None ,
67
+ image_uri = None ,
68
68
framework_version = None ,
69
69
py_version = None ,
70
70
predictor_cls = ChainerPredictor ,
@@ -85,16 +85,16 @@ def __init__(
85
85
file which should be executed as the entry point to model
86
86
hosting. If ``source_dir`` is specified, then ``entry_point``
87
87
must point to a file located at the root of ``source_dir``.
88
- image (str): A Docker image URI (default: None). If not specified, a
88
+ image_uri (str): A Docker image URI (default: None). If not specified, a
89
89
default image for Chainer will be used. If ``framework_version``
90
- or ``py_version`` are ``None``, then ``image `` is required. If
90
+ or ``py_version`` are ``None``, then ``image_uri `` is required. If
91
91
also ``None``, then a ``ValueError`` will be raised.
92
92
framework_version (str): Chainer version you want to use for
93
93
executing your model training code. Defaults to ``None``. Required
94
- unless ``image `` is provided.
94
+ unless ``image_uri `` is provided.
95
95
py_version (str): Python version you want to use for executing your
96
96
model training code. Defaults to ``None``. Required unless
97
- ``image `` is provided.
97
+ ``image_uri `` is provided.
98
98
predictor_cls (callable[str, sagemaker.session.Session]): A function
99
99
to call to create a predictor with an endpoint name and
100
100
SageMaker ``Session``. If specified, ``deploy()`` returns the
@@ -111,7 +111,7 @@ def __init__(
111
111
:class:`~sagemaker.model.FrameworkModel` and
112
112
:class:`~sagemaker.model.Model`.
113
113
"""
114
- validate_version_or_image_args (framework_version , py_version , image )
114
+ validate_version_or_image_args (framework_version , py_version , image_uri )
115
115
if py_version == "py2" :
116
116
logger .warning (
117
117
python_deprecation_warning (self .__framework_name__ , defaults .LATEST_PY2_VERSION )
@@ -120,7 +120,7 @@ def __init__(
120
120
self .py_version = py_version
121
121
122
122
super (ChainerModel , self ).__init__ (
123
- model_data , image , role , entry_point , predictor_cls = predictor_cls , ** kwargs
123
+ model_data , image_uri , role , entry_point , predictor_cls = predictor_cls , ** kwargs
124
124
)
125
125
126
126
self .model_server_workers = model_server_workers
@@ -140,7 +140,7 @@ def prepare_container_def(self, instance_type=None, accelerator_type=None):
140
140
dict[str, str]: A container definition object usable with the
141
141
CreateModel API.
142
142
"""
143
- deploy_image = self .image
143
+ deploy_image = self .image_uri
144
144
if not deploy_image :
145
145
if instance_type is None :
146
146
raise ValueError (
0 commit comments