@@ -341,7 +341,9 @@ def register(
341
341
"MACHINE_LEARNING" (default: None).
342
342
343
343
Returns:
344
- A `sagemaker.model.ModelPackage` instance.
344
+ A `sagemaker.model.ModelPackage` instance or pipeline step arguments
345
+ in case the Model instance is built with
346
+ :class:`~sagemaker.workflow.pipeline_context.PipelineSession`
345
347
"""
346
348
if self .model_data is None :
347
349
raise ValueError ("SageMaker Model Package cannot be created without model data." )
@@ -399,15 +401,21 @@ def create(
399
401
attach to an endpoint for model loading and inference, for
400
402
example, 'ml.eia1.medium'. If not specified, no Elastic
401
403
Inference accelerator will be attached to the endpoint (default: None).
402
- serverless_inference_config (sagemaker.serverless. ServerlessInferenceConfig):
404
+ serverless_inference_config (ServerlessInferenceConfig):
403
405
Specifies configuration related to serverless endpoint. Instance type is
404
406
not provided in serverless inference. So this is used to find image URIs
405
407
(default: None).
406
408
tags (List[Dict[str, str]]): The list of tags to add to
407
- the model (default: None). Example: >>> tags = [{'Key': 'tagname', 'Value':
408
- 'tagvalue'}] For more information about tags, see
409
- https://boto3.amazonaws.com/v1/documentation
410
- /api/latest/reference/services/sagemaker.html#SageMaker.Client.add_tags
409
+ the model (default: None). Example::
410
+
411
+ tags = [{'Key': 'tagname', 'Value':'tagvalue'}]
412
+
413
+ For more information about tags, see
414
+ `boto3 documentation <https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/sagemaker.html#SageMaker.Client.add_tags>`_
415
+
416
+ Returns:
417
+ None or pipeline step arguments in case the Model instance is built with
418
+ :class:`~sagemaker.workflow.pipeline_context.PipelineSession`
411
419
"""
412
420
# TODO: we should replace _create_sagemaker_model() with create()
413
421
self ._create_sagemaker_model (
0 commit comments