@@ -77,6 +77,7 @@ def _create_model(output_path):
77
77
return _create_model
78
78
79
79
80
+ @pytest .mark .local_mode
80
81
@pytest .mark .skipif (PYTHON_VERSION != 'py2' , reason = "TensorFlow image supports only python 2." )
81
82
def test_tf_local_mode (tf_full_version , sagemaker_local_session ):
82
83
with timeout (minutes = 5 ):
@@ -116,6 +117,7 @@ def test_tf_local_mode(tf_full_version, sagemaker_local_session):
116
117
estimator .delete_endpoint ()
117
118
118
119
120
+ @pytest .mark .local_mode
119
121
@pytest .mark .skipif (PYTHON_VERSION != 'py2' , reason = "TensorFlow image supports only python 2." )
120
122
def test_tf_distributed_local_mode (sagemaker_local_session ):
121
123
with timeout (minutes = 5 ):
@@ -154,6 +156,7 @@ def test_tf_distributed_local_mode(sagemaker_local_session):
154
156
estimator .delete_endpoint ()
155
157
156
158
159
+ @pytest .mark .local_mode
157
160
@pytest .mark .skipif (PYTHON_VERSION != 'py2' , reason = "TensorFlow image supports only python 2." )
158
161
def test_tf_local_data (sagemaker_local_session ):
159
162
with timeout (minutes = 5 ):
@@ -191,6 +194,7 @@ def test_tf_local_data(sagemaker_local_session):
191
194
estimator .delete_endpoint ()
192
195
193
196
197
+ @pytest .mark .local_mode
194
198
@pytest .mark .skipif (PYTHON_VERSION != 'py2' , reason = "TensorFlow image supports only python 2." )
195
199
def test_tf_local_data_local_script ():
196
200
with timeout (minutes = 5 ):
@@ -229,6 +233,7 @@ def test_tf_local_data_local_script():
229
233
estimator .delete_endpoint ()
230
234
231
235
236
+ @pytest .mark .local_mode
232
237
def test_local_mode_serving_from_s3_model (sagemaker_local_session , mxnet_model , mxnet_full_version ):
233
238
path = 's3://%s' % sagemaker_local_session .default_bucket ()
234
239
s3_model = mxnet_model (path )
@@ -245,6 +250,7 @@ def test_local_mode_serving_from_s3_model(sagemaker_local_session, mxnet_model,
245
250
predictor .delete_endpoint ()
246
251
247
252
253
+ @pytest .mark .local_mode
248
254
def test_local_mode_serving_from_local_model (tmpdir , sagemaker_local_session , mxnet_model ):
249
255
predictor = None
250
256
@@ -261,6 +267,7 @@ def test_local_mode_serving_from_local_model(tmpdir, sagemaker_local_session, mx
261
267
predictor .delete_endpoint ()
262
268
263
269
270
+ @pytest .mark .local_mode
264
271
def test_mxnet_local_mode (sagemaker_local_session , mxnet_full_version ):
265
272
script_path = os .path .join (DATA_DIR , 'mxnet_mnist' , 'mnist.py' )
266
273
data_path = os .path .join (DATA_DIR , 'mxnet_mnist' )
@@ -286,6 +293,7 @@ def test_mxnet_local_mode(sagemaker_local_session, mxnet_full_version):
286
293
mx .delete_endpoint ()
287
294
288
295
296
+ @pytest .mark .local_mode
289
297
def test_mxnet_local_data_local_script (mxnet_full_version ):
290
298
data_path = os .path .join (DATA_DIR , 'mxnet_mnist' )
291
299
script_path = os .path .join (data_path , 'mnist.py' )
@@ -310,6 +318,7 @@ def test_mxnet_local_data_local_script(mxnet_full_version):
310
318
mx .delete_endpoint ()
311
319
312
320
321
+ @pytest .mark .local_mode
313
322
def test_local_transform_mxnet (sagemaker_local_session , tmpdir , mxnet_full_version ):
314
323
data_path = os .path .join (DATA_DIR , 'mxnet_mnist' )
315
324
script_path = os .path .join (data_path , 'mnist.py' )
0 commit comments