From bb23cc1c2826768ad412e5e50d5bf33c02ca7d95 Mon Sep 17 00:00:00 2001 From: Lauren Yu <6631887+laurenyu@users.noreply.github.com> Date: Tue, 3 Sep 2019 15:04:43 -0700 Subject: [PATCH] doc: updated description for "accept" parameter in batch transform --- src/sagemaker/algorithm.py | 5 +++-- src/sagemaker/estimator.py | 10 ++++++---- src/sagemaker/model.py | 5 +++-- src/sagemaker/pipeline.py | 5 +++-- src/sagemaker/tensorflow/estimator.py | 5 +++-- src/sagemaker/transformer.py | 5 +++-- src/sagemaker/workflow/airflow.py | 5 +++-- 7 files changed, 24 insertions(+), 16 deletions(-) diff --git a/src/sagemaker/algorithm.py b/src/sagemaker/algorithm.py index fae19cbd24..988be17eee 100644 --- a/src/sagemaker/algorithm.py +++ b/src/sagemaker/algorithm.py @@ -365,8 +365,9 @@ def transformer( not specified, results are stored to a default bucket. output_kms_key (str): Optional. KMS key ID for encrypting the transform output (default: None). - accept (str): The content type accepted by the endpoint deployed - during the transform job. + accept (str): The accept header passed by the client to + the inference endpoint. If it is supported by the endpoint, + it will be the format of the batch transform output. env (dict): Environment variables to be set for use during the transform job (default: None). max_concurrent_transforms (int): The maximum number of HTTP requests diff --git a/src/sagemaker/estimator.py b/src/sagemaker/estimator.py index 6e79e26ff8..3d35191b05 100644 --- a/src/sagemaker/estimator.py +++ b/src/sagemaker/estimator.py @@ -685,8 +685,9 @@ def transformer( not specified, results are stored to a default bucket. output_kms_key (str): Optional. KMS key ID for encrypting the transform output (default: None). - accept (str): The content type accepted by the endpoint deployed - during the transform job. + accept (str): The accept header passed by the client to + the inference endpoint. If it is supported by the endpoint, + it will be the format of the batch transform output. env (dict): Environment variables to be set for use during the transform job (default: None). max_concurrent_transforms (int): The maximum number of HTTP requests @@ -1626,8 +1627,9 @@ def transformer( not specified, results are stored to a default bucket. output_kms_key (str): Optional. KMS key ID for encrypting the transform output (default: None). - accept (str): The content type accepted by the endpoint deployed - during the transform job. + accept (str): The accept header passed by the client to + the inference endpoint. If it is supported by the endpoint, + it will be the format of the batch transform output. env (dict): Environment variables to be set for use during the transform job (default: None). max_concurrent_transforms (int): The maximum number of HTTP requests diff --git a/src/sagemaker/model.py b/src/sagemaker/model.py index fd864bc766..8e5d20180e 100644 --- a/src/sagemaker/model.py +++ b/src/sagemaker/model.py @@ -484,8 +484,9 @@ def transformer( not specified, results are stored to a default bucket. output_kms_key (str): Optional. KMS key ID for encrypting the transform output (default: None). - accept (str): The content type accepted by the endpoint deployed - during the transform job. + accept (str): The accept header passed by the client to + the inference endpoint. If it is supported by the endpoint, + it will be the format of the batch transform output. env (dict): Environment variables to be set for use during the transform job (default: None). max_concurrent_transforms (int): The maximum number of HTTP requests diff --git a/src/sagemaker/pipeline.py b/src/sagemaker/pipeline.py index a6967e7073..55cff29c96 100644 --- a/src/sagemaker/pipeline.py +++ b/src/sagemaker/pipeline.py @@ -208,8 +208,9 @@ def transformer( not specified, results are stored to a default bucket. output_kms_key (str): Optional. KMS key ID for encrypting the transform output (default: None). - accept (str): The content type accepted by the endpoint deployed - during the transform job. + accept (str): The accept header passed by the client to + the inference endpoint. If it is supported by the endpoint, + it will be the format of the batch transform output. env (dict): Environment variables to be set for use during the transform job (default: None). max_concurrent_transforms (int): The maximum number of HTTP requests diff --git a/src/sagemaker/tensorflow/estimator.py b/src/sagemaker/tensorflow/estimator.py index bc0984d04f..4af295a7f3 100644 --- a/src/sagemaker/tensorflow/estimator.py +++ b/src/sagemaker/tensorflow/estimator.py @@ -719,8 +719,9 @@ def transformer( results are stored to a default bucket. output_kms_key (str): Optional. KMS key ID for encrypting the transform output (default: None). - accept (str): The content type accepted by the endpoint deployed during the transform - job. + accept (str): The accept header passed by the client to + the inference endpoint. If it is supported by the endpoint, + it will be the format of the batch transform output. env (dict): Environment variables to be set for use during the transform job (default: None). max_concurrent_transforms (int): The maximum number of HTTP requests to be made to diff --git a/src/sagemaker/transformer.py b/src/sagemaker/transformer.py index ce442e0986..d66b73b6a7 100644 --- a/src/sagemaker/transformer.py +++ b/src/sagemaker/transformer.py @@ -60,8 +60,9 @@ def __init__( not specified, results are stored to a default bucket. output_kms_key (str): Optional. KMS key ID for encrypting the transform output (default: None). - accept (str): The content type accepted by the endpoint deployed - during the transform job. + accept (str): The accept header passed by the client to + the inference endpoint. If it is supported by the endpoint, + it will be the format of the batch transform output. max_concurrent_transforms (int): The maximum number of HTTP requests to be made to each individual transform container at one time. max_payload (int): Maximum size of the payload in a single HTTP diff --git a/src/sagemaker/workflow/airflow.py b/src/sagemaker/workflow/airflow.py index 5e55351bcd..bb262975a8 100644 --- a/src/sagemaker/workflow/airflow.py +++ b/src/sagemaker/workflow/airflow.py @@ -689,8 +689,9 @@ def transform_config_from_estimator( specified, results are stored to a default bucket. output_kms_key (str): Optional. KMS key ID for encrypting the transform output (default: None). - accept (str): The content type accepted by the endpoint deployed during - the transform job. + accept (str): The accept header passed by the client to + the inference endpoint. If it is supported by the endpoint, + it will be the format of the batch transform output. env (dict): Environment variables to be set for use during the transform job (default: None). max_concurrent_transforms (int): The maximum number of HTTP requests to