Skip to content

Commit eca3f3a

Browse files
author
Ragav Venkatesan
authored
Considered all comments.
1 parent 3c8394f commit eca3f3a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

advanced_functionality/mxnet_mnist_byom/mxnet_mnist.ipynb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,15 @@
133133
"outputs": [],
134134
"source": [
135135
"from mnist import train\n",
136-
"model = train(data = data)"
136+
"model = train(data = data, num_cpus=0, num_gpus=1)"
137137
]
138138
},
139139
{
140140
"cell_type": "markdown",
141141
"metadata": {},
142142
"source": [
143+
"If you want to run the training on a cpu or if you are on an instance with cpus only, pass appropriate arguments. \n",
144+
"\n",
143145
"## Set up hosting for the model\n",
144146
"\n",
145147
"### Export the model from mxnet\n",
@@ -228,6 +230,9 @@
228230
"metadata": {},
229231
"outputs": [],
230232
"source": [
233+
"import logging\n",
234+
"logging.getLogger().setLevel(logging.WARNING)\n",
235+
"\n",
231236
"predictor = sagemaker_model.deploy(initial_instance_count=1,\n",
232237
" instance_type='ml.c4.xlarge')"
233238
]
@@ -304,7 +309,7 @@
304309
},
305310
"outputs": [],
306311
"source": [
307-
"# sagemaker.Session().delete_endpoint(predictor.endpoint)"
312+
"sagemaker.Session().delete_endpoint(predictor.endpoint)"
308313
]
309314
},
310315
{

0 commit comments

Comments
 (0)