Skip to content

Commit 2cce5b8

Browse files
authored
doc: Fix typo with SM_MODEL_DIR, missing quotes (#1287)
The documentation incorrectly specifies SM_CHANNEL_TRAIN instead of SM_MODEL_DIR for the directory where models are stored. There is also example code missing quotation marks.
1 parent 03464e5 commit 2cce5b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/using_tf.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ The training script is very similar to a training script you might run outside o
5858

5959
For the exhaustive list of available environment variables, see the `SageMaker Containers documentation <https://github.com/aws/sagemaker-containers#list-of-provided-environment-variables-by-sagemaker-containers>`_.
6060

61-
A typical training script loads data from the input channels, configures training with hyperparameters, trains a model, and saves a model to ``SM_CHANNEL_TRAIN`` so that it can be deployed for inference later.
61+
A typical training script loads data from the input channels, configures training with hyperparameters, trains a model, and saves a model to ``SM_MODEL_DIR`` so that it can be deployed for inference later.
6262
Hyperparameters are passed to your script as arguments and can be retrieved with an ``argparse.ArgumentParser`` instance.
6363
For example, a training script might start with the following:
6464

@@ -544,7 +544,7 @@ For example:
544544
545545
batch_output = 's3://{}/{}/results'.format(bucket, prefix) # The location to store the results
546546
547-
tf_transformer = tf_estimator.transformer(instance_count=1, instance_type='ml.m4.xlarge, output_path=batch_output)
547+
tf_transformer = tf_estimator.transformer(instance_count=1, instance_type='ml.m4.xlarge', output_path=batch_output)
548548
549549
To use a model trained outside of SageMaker, you can package the model as a SageMaker model, and call the ``transformer`` method of the SageMaker model.
550550

@@ -557,7 +557,7 @@ For example:
557557
558558
batch_output = 's3://{}/{}/results'.format(bucket, prefix) # The location to store the results
559559
560-
tf_transformer = tensorflow_serving_model.transformer(instance_count=1, instance_type='ml.m4.xlarge, output_path=batch_output)
560+
tf_transformer = tensorflow_serving_model.transformer(instance_count=1, instance_type='ml.m4.xlarge', output_path=batch_output)
561561
562562
For information about how to package a model as a SageMaker model, see :ref:`overview:BYO Model`.
563563
When you call the ``tranformer`` method, you specify the type and number of instances to use for the batch transform job, and the location where the results are stored in S3.

0 commit comments

Comments
 (0)