From 010163c6e95a1e02d1b505a24e9ca260189ae179 Mon Sep 17 00:00:00 2001 From: Date: Wed, 12 Sep 2018 16:23:21 -0700 Subject: [PATCH 1/2] Fix code example in TensorFlow README for using compressed training data --- src/sagemaker/tensorflow/README.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/sagemaker/tensorflow/README.rst b/src/sagemaker/tensorflow/README.rst index 88b08ed54b..8e1783307b 100644 --- a/src/sagemaker/tensorflow/README.rst +++ b/src/sagemaker/tensorflow/README.rst @@ -818,8 +818,10 @@ If your TFRecords are compressed, you can train on Gzipped TF Records by passing ``fit()``, and SageMaker will automatically unzip the records as data is streamed to your training instances: .. code:: python + from sagemaker.session import s3_input - tf_estimator.fit('s3://bucket/path/to/training/data', compression='Gzip') + train_s3_input = s3_input('s3://bucket/path/to/training/data', compression='Gzip') + tf_estimator.fit(train_s3_input) You can learn more about ``PipeModeDataset`` in the sagemaker-tensorflow-extensions repository: https://github.com/aws/sagemaker-tensorflow-extensions From 01bc5df0014854ed887a10dd7498d7dcd113c8a8 Mon Sep 17 00:00:00 2001 From: Date: Wed, 12 Sep 2018 16:28:53 -0700 Subject: [PATCH 2/2] Fix rst syntax --- src/sagemaker/tensorflow/README.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sagemaker/tensorflow/README.rst b/src/sagemaker/tensorflow/README.rst index 8e1783307b..b7587155b9 100644 --- a/src/sagemaker/tensorflow/README.rst +++ b/src/sagemaker/tensorflow/README.rst @@ -818,6 +818,7 @@ If your TFRecords are compressed, you can train on Gzipped TF Records by passing ``fit()``, and SageMaker will automatically unzip the records as data is streamed to your training instances: .. code:: python + from sagemaker.session import s3_input train_s3_input = s3_input('s3://bucket/path/to/training/data', compression='Gzip')