57
57
58
58
59
59
def test_mxnet_with_rules (
60
- sagemaker_session , mxnet_training_latest_version , mxnet_latest_py_version , cpu_instance_type
60
+ sagemaker_session ,
61
+ mxnet_training_latest_version ,
62
+ mxnet_training_latest_py_version ,
63
+ cpu_instance_type ,
61
64
):
62
65
with timeout (minutes = TRAINING_DEFAULT_TIMEOUT_MINUTES ):
63
66
rules = [
@@ -75,7 +78,7 @@ def test_mxnet_with_rules(
75
78
entry_point = script_path ,
76
79
role = "SageMakerRole" ,
77
80
framework_version = mxnet_training_latest_version ,
78
- py_version = mxnet_latest_py_version ,
81
+ py_version = mxnet_training_latest_py_version ,
79
82
instance_count = 1 ,
80
83
instance_type = cpu_instance_type ,
81
84
sagemaker_session = sagemaker_session ,
@@ -118,7 +121,10 @@ def test_mxnet_with_rules(
118
121
119
122
120
123
def test_mxnet_with_custom_rule (
121
- sagemaker_session , mxnet_training_latest_version , mxnet_latest_py_version , cpu_instance_type
124
+ sagemaker_session ,
125
+ mxnet_training_latest_version ,
126
+ mxnet_training_latest_py_version ,
127
+ cpu_instance_type ,
122
128
):
123
129
with timeout (minutes = TRAINING_DEFAULT_TIMEOUT_MINUTES ):
124
130
rules = [_get_custom_rule (sagemaker_session )]
@@ -130,7 +136,7 @@ def test_mxnet_with_custom_rule(
130
136
entry_point = script_path ,
131
137
role = "SageMakerRole" ,
132
138
framework_version = mxnet_training_latest_version ,
133
- py_version = mxnet_latest_py_version ,
139
+ py_version = mxnet_training_latest_py_version ,
134
140
instance_count = 1 ,
135
141
instance_type = cpu_instance_type ,
136
142
sagemaker_session = sagemaker_session ,
@@ -167,7 +173,10 @@ def test_mxnet_with_custom_rule(
167
173
168
174
169
175
def test_mxnet_with_debugger_hook_config (
170
- sagemaker_session , mxnet_training_latest_version , mxnet_latest_py_version , cpu_instance_type
176
+ sagemaker_session ,
177
+ mxnet_training_latest_version ,
178
+ mxnet_training_latest_py_version ,
179
+ cpu_instance_type ,
171
180
):
172
181
with timeout (minutes = TRAINING_DEFAULT_TIMEOUT_MINUTES ):
173
182
debugger_hook_config = DebuggerHookConfig (
@@ -183,7 +192,7 @@ def test_mxnet_with_debugger_hook_config(
183
192
entry_point = script_path ,
184
193
role = "SageMakerRole" ,
185
194
framework_version = mxnet_training_latest_version ,
186
- py_version = mxnet_latest_py_version ,
195
+ py_version = mxnet_training_latest_py_version ,
187
196
instance_count = 1 ,
188
197
instance_type = cpu_instance_type ,
189
198
sagemaker_session = sagemaker_session ,
@@ -206,7 +215,10 @@ def test_mxnet_with_debugger_hook_config(
206
215
207
216
208
217
def test_mxnet_with_rules_and_debugger_hook_config (
209
- sagemaker_session , mxnet_training_latest_version , mxnet_latest_py_version , cpu_instance_type
218
+ sagemaker_session ,
219
+ mxnet_training_latest_version ,
220
+ mxnet_training_latest_py_version ,
221
+ cpu_instance_type ,
210
222
):
211
223
with timeout (minutes = TRAINING_DEFAULT_TIMEOUT_MINUTES ):
212
224
rules = [
@@ -229,7 +241,7 @@ def test_mxnet_with_rules_and_debugger_hook_config(
229
241
entry_point = script_path ,
230
242
role = "SageMakerRole" ,
231
243
framework_version = mxnet_training_latest_version ,
232
- py_version = mxnet_latest_py_version ,
244
+ py_version = mxnet_training_latest_py_version ,
233
245
instance_count = 1 ,
234
246
instance_type = cpu_instance_type ,
235
247
sagemaker_session = sagemaker_session ,
@@ -274,7 +286,10 @@ def test_mxnet_with_rules_and_debugger_hook_config(
274
286
275
287
276
288
def test_mxnet_with_custom_rule_and_debugger_hook_config (
277
- sagemaker_session , mxnet_training_latest_version , mxnet_latest_py_version , cpu_instance_type
289
+ sagemaker_session ,
290
+ mxnet_training_latest_version ,
291
+ mxnet_training_latest_py_version ,
292
+ cpu_instance_type ,
278
293
):
279
294
with timeout (minutes = TRAINING_DEFAULT_TIMEOUT_MINUTES ):
280
295
rules = [_get_custom_rule (sagemaker_session )]
@@ -291,7 +306,7 @@ def test_mxnet_with_custom_rule_and_debugger_hook_config(
291
306
entry_point = script_path ,
292
307
role = "SageMakerRole" ,
293
308
framework_version = mxnet_training_latest_version ,
294
- py_version = mxnet_latest_py_version ,
309
+ py_version = mxnet_training_latest_py_version ,
295
310
instance_count = 1 ,
296
311
instance_type = cpu_instance_type ,
297
312
sagemaker_session = sagemaker_session ,
@@ -330,7 +345,10 @@ def test_mxnet_with_custom_rule_and_debugger_hook_config(
330
345
331
346
332
347
def test_mxnet_with_tensorboard_output_config (
333
- sagemaker_session , mxnet_training_latest_version , mxnet_latest_py_version , cpu_instance_type
348
+ sagemaker_session ,
349
+ mxnet_training_latest_version ,
350
+ mxnet_training_latest_py_version ,
351
+ cpu_instance_type ,
334
352
):
335
353
with timeout (minutes = TRAINING_DEFAULT_TIMEOUT_MINUTES ):
336
354
tensorboard_output_config = TensorBoardOutputConfig (
@@ -346,7 +364,7 @@ def test_mxnet_with_tensorboard_output_config(
346
364
entry_point = script_path ,
347
365
role = "SageMakerRole" ,
348
366
framework_version = mxnet_training_latest_version ,
349
- py_version = mxnet_latest_py_version ,
367
+ py_version = mxnet_training_latest_py_version ,
350
368
instance_count = 1 ,
351
369
instance_type = cpu_instance_type ,
352
370
sagemaker_session = sagemaker_session ,
@@ -373,7 +391,10 @@ def test_mxnet_with_tensorboard_output_config(
373
391
374
392
@pytest .mark .canary_quick
375
393
def test_mxnet_with_all_rules_and_configs (
376
- sagemaker_session , mxnet_training_latest_version , mxnet_latest_py_version , cpu_instance_type
394
+ sagemaker_session ,
395
+ mxnet_training_latest_version ,
396
+ mxnet_training_latest_py_version ,
397
+ cpu_instance_type ,
377
398
):
378
399
with timeout (minutes = TRAINING_DEFAULT_TIMEOUT_MINUTES ):
379
400
rules = [
@@ -402,7 +423,7 @@ def test_mxnet_with_all_rules_and_configs(
402
423
entry_point = script_path ,
403
424
role = "SageMakerRole" ,
404
425
framework_version = mxnet_training_latest_version ,
405
- py_version = mxnet_latest_py_version ,
426
+ py_version = mxnet_training_latest_py_version ,
406
427
instance_count = 1 ,
407
428
instance_type = cpu_instance_type ,
408
429
sagemaker_session = sagemaker_session ,
@@ -445,7 +466,10 @@ def test_mxnet_with_all_rules_and_configs(
445
466
446
467
447
468
def test_mxnet_with_debugger_hook_config_disabled (
448
- sagemaker_session , mxnet_training_latest_version , mxnet_latest_py_version , cpu_instance_type
469
+ sagemaker_session ,
470
+ mxnet_training_latest_version ,
471
+ mxnet_training_latest_py_version ,
472
+ cpu_instance_type ,
449
473
):
450
474
with timeout (minutes = TRAINING_DEFAULT_TIMEOUT_MINUTES ):
451
475
script_path = os .path .join (DATA_DIR , "mxnet_mnist" , "mnist_gluon.py" )
@@ -455,7 +479,7 @@ def test_mxnet_with_debugger_hook_config_disabled(
455
479
entry_point = script_path ,
456
480
role = "SageMakerRole" ,
457
481
framework_version = mxnet_training_latest_version ,
458
- py_version = mxnet_latest_py_version ,
482
+ py_version = mxnet_training_latest_py_version ,
459
483
instance_count = 1 ,
460
484
instance_type = cpu_instance_type ,
461
485
sagemaker_session = sagemaker_session ,
0 commit comments