57
57
58
58
59
59
def test_mxnet_with_rules (
60
- sagemaker_session , mxnet_full_version , mxnet_full_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 = [
@@ -74,8 +77,8 @@ def test_mxnet_with_rules(
74
77
mx = MXNet (
75
78
entry_point = script_path ,
76
79
role = "SageMakerRole" ,
77
- framework_version = mxnet_full_version ,
78
- py_version = mxnet_full_py_version ,
80
+ framework_version = mxnet_training_latest_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_full_version , mxnet_full_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 )]
@@ -129,8 +135,8 @@ def test_mxnet_with_custom_rule(
129
135
mx = MXNet (
130
136
entry_point = script_path ,
131
137
role = "SageMakerRole" ,
132
- framework_version = mxnet_full_version ,
133
- py_version = mxnet_full_py_version ,
138
+ framework_version = mxnet_training_latest_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_full_version , mxnet_full_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 (
@@ -182,8 +191,8 @@ def test_mxnet_with_debugger_hook_config(
182
191
mx = MXNet (
183
192
entry_point = script_path ,
184
193
role = "SageMakerRole" ,
185
- framework_version = mxnet_full_version ,
186
- py_version = mxnet_full_py_version ,
194
+ framework_version = mxnet_training_latest_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_full_version , mxnet_full_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 = [
@@ -228,8 +240,8 @@ def test_mxnet_with_rules_and_debugger_hook_config(
228
240
mx = MXNet (
229
241
entry_point = script_path ,
230
242
role = "SageMakerRole" ,
231
- framework_version = mxnet_full_version ,
232
- py_version = mxnet_full_py_version ,
243
+ framework_version = mxnet_training_latest_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_full_version , mxnet_full_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 )]
@@ -290,8 +305,8 @@ def test_mxnet_with_custom_rule_and_debugger_hook_config(
290
305
mx = MXNet (
291
306
entry_point = script_path ,
292
307
role = "SageMakerRole" ,
293
- framework_version = mxnet_full_version ,
294
- py_version = mxnet_full_py_version ,
308
+ framework_version = mxnet_training_latest_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_full_version , mxnet_full_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 (
@@ -345,8 +363,8 @@ def test_mxnet_with_tensorboard_output_config(
345
363
mx = MXNet (
346
364
entry_point = script_path ,
347
365
role = "SageMakerRole" ,
348
- framework_version = mxnet_full_version ,
349
- py_version = mxnet_full_py_version ,
366
+ framework_version = mxnet_training_latest_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_full_version , mxnet_full_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 = [
@@ -401,8 +422,8 @@ def test_mxnet_with_all_rules_and_configs(
401
422
mx = MXNet (
402
423
entry_point = script_path ,
403
424
role = "SageMakerRole" ,
404
- framework_version = mxnet_full_version ,
405
- py_version = mxnet_full_py_version ,
425
+ framework_version = mxnet_training_latest_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_full_version , mxnet_full_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" )
@@ -454,8 +478,8 @@ def test_mxnet_with_debugger_hook_config_disabled(
454
478
mx = MXNet (
455
479
entry_point = script_path ,
456
480
role = "SageMakerRole" ,
457
- framework_version = mxnet_full_version ,
458
- py_version = mxnet_full_py_version ,
481
+ framework_version = mxnet_training_latest_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