Skip to content

Commit fc65e77

Browse files
authored
Use absolute paths for custom code files for AWS docs examples (MXNet MNIST and TensorFlow Iris). (aws#33)
1 parent 86c024e commit fc65e77

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sagemaker-python-sdk/mxnet_mnist/mxnet_mnist.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"source": [
4343
"from sagemaker.mxnet import MXNet\n",
4444
"\n",
45-
"mnist_estimator = MXNet(entry_point='mnist.py',\n",
45+
"mnist_estimator = MXNet(entry_point='/home/ec2-user/sample-notebooks/sagemaker-python-sdk/mxnet_mnist/mnist.py',\n",
4646
" role=role,\n",
4747
" output_path=model_artifacts_location,\n",
4848
" code_location=custom_code_upload_location,\n",
@@ -115,7 +115,7 @@
115115
"outputs": [],
116116
"source": [
117117
"from IPython.display import HTML\n",
118-
"HTML(open(\"input.html\").read())"
118+
"HTML(open(\"/home/ec2-user/sample-notebooks/sagemaker-python-sdk/mxnet_mnist/input.html\").read())"
119119
]
120120
},
121121
{

sagemaker-python-sdk/tensorflow_iris_dnn_classifier_using_estimators/tensorflow_iris_dnn_classifier_using_estimators.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@
286286
"source": [
287287
"from sagemaker.tensorflow import TensorFlow\n",
288288
"\n",
289-
"iris_estimator = TensorFlow(entry_point='iris_dnn_classifier.py',\n",
289+
"iris_estimator = TensorFlow(entry_point='/home/ec2-user/sample-notebooks/sagemaker-python-sdk/tensorflow_iris_dnn_classifier_using_estimators/iris_dnn_classifier.py',\n",
290290
" role=role,\n",
291291
" output_path=model_artifacts_location,\n",
292292
" code_location=custom_code_upload_location,\n",

0 commit comments

Comments
 (0)