Skip to content

Commit ef932b3

Browse files
authored
doc: updated description for "accept" parameter in batch transform (#1017)
1 parent cff8b69 commit ef932b3

File tree

7 files changed

+24
-16
lines changed

7 files changed

+24
-16
lines changed

src/sagemaker/algorithm.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,9 @@ def transformer(
365365
not specified, results are stored to a default bucket.
366366
output_kms_key (str): Optional. KMS key ID for encrypting the
367367
transform output (default: None).
368-
accept (str): The content type accepted by the endpoint deployed
369-
during the transform job.
368+
accept (str): The accept header passed by the client to
369+
the inference endpoint. If it is supported by the endpoint,
370+
it will be the format of the batch transform output.
370371
env (dict): Environment variables to be set for use during the
371372
transform job (default: None).
372373
max_concurrent_transforms (int): The maximum number of HTTP requests

src/sagemaker/estimator.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -685,8 +685,9 @@ def transformer(
685685
not specified, results are stored to a default bucket.
686686
output_kms_key (str): Optional. KMS key ID for encrypting the
687687
transform output (default: None).
688-
accept (str): The content type accepted by the endpoint deployed
689-
during the transform job.
688+
accept (str): The accept header passed by the client to
689+
the inference endpoint. If it is supported by the endpoint,
690+
it will be the format of the batch transform output.
690691
env (dict): Environment variables to be set for use during the
691692
transform job (default: None).
692693
max_concurrent_transforms (int): The maximum number of HTTP requests
@@ -1626,8 +1627,9 @@ def transformer(
16261627
not specified, results are stored to a default bucket.
16271628
output_kms_key (str): Optional. KMS key ID for encrypting the
16281629
transform output (default: None).
1629-
accept (str): The content type accepted by the endpoint deployed
1630-
during the transform job.
1630+
accept (str): The accept header passed by the client to
1631+
the inference endpoint. If it is supported by the endpoint,
1632+
it will be the format of the batch transform output.
16311633
env (dict): Environment variables to be set for use during the
16321634
transform job (default: None).
16331635
max_concurrent_transforms (int): The maximum number of HTTP requests

src/sagemaker/model.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,8 +484,9 @@ def transformer(
484484
not specified, results are stored to a default bucket.
485485
output_kms_key (str): Optional. KMS key ID for encrypting the
486486
transform output (default: None).
487-
accept (str): The content type accepted by the endpoint deployed
488-
during the transform job.
487+
accept (str): The accept header passed by the client to
488+
the inference endpoint. If it is supported by the endpoint,
489+
it will be the format of the batch transform output.
489490
env (dict): Environment variables to be set for use during the
490491
transform job (default: None).
491492
max_concurrent_transforms (int): The maximum number of HTTP requests

src/sagemaker/pipeline.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,9 @@ def transformer(
208208
not specified, results are stored to a default bucket.
209209
output_kms_key (str): Optional. KMS key ID for encrypting the
210210
transform output (default: None).
211-
accept (str): The content type accepted by the endpoint deployed
212-
during the transform job.
211+
accept (str): The accept header passed by the client to
212+
the inference endpoint. If it is supported by the endpoint,
213+
it will be the format of the batch transform output.
213214
env (dict): Environment variables to be set for use during the
214215
transform job (default: None).
215216
max_concurrent_transforms (int): The maximum number of HTTP requests

src/sagemaker/tensorflow/estimator.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -719,8 +719,9 @@ def transformer(
719719
results are stored to a default bucket.
720720
output_kms_key (str): Optional. KMS key ID for encrypting the transform output
721721
(default: None).
722-
accept (str): The content type accepted by the endpoint deployed during the transform
723-
job.
722+
accept (str): The accept header passed by the client to
723+
the inference endpoint. If it is supported by the endpoint,
724+
it will be the format of the batch transform output.
724725
env (dict): Environment variables to be set for use during the transform job
725726
(default: None).
726727
max_concurrent_transforms (int): The maximum number of HTTP requests to be made to

src/sagemaker/transformer.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,9 @@ def __init__(
6060
not specified, results are stored to a default bucket.
6161
output_kms_key (str): Optional. KMS key ID for encrypting the
6262
transform output (default: None).
63-
accept (str): The content type accepted by the endpoint deployed
64-
during the transform job.
63+
accept (str): The accept header passed by the client to
64+
the inference endpoint. If it is supported by the endpoint,
65+
it will be the format of the batch transform output.
6566
max_concurrent_transforms (int): The maximum number of HTTP requests
6667
to be made to each individual transform container at one time.
6768
max_payload (int): Maximum size of the payload in a single HTTP

src/sagemaker/workflow/airflow.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -689,8 +689,9 @@ def transform_config_from_estimator(
689689
specified, results are stored to a default bucket.
690690
output_kms_key (str): Optional. KMS key ID for encrypting the transform
691691
output (default: None).
692-
accept (str): The content type accepted by the endpoint deployed during
693-
the transform job.
692+
accept (str): The accept header passed by the client to
693+
the inference endpoint. If it is supported by the endpoint,
694+
it will be the format of the batch transform output.
694695
env (dict): Environment variables to be set for use during the transform
695696
job (default: None).
696697
max_concurrent_transforms (int): The maximum number of HTTP requests to

0 commit comments

Comments
 (0)