@@ -435,6 +435,38 @@ def test_mxnet_with_all_rules_and_configs(sagemaker_session, mxnet_full_version,
435
435
_wait_and_assert_that_no_rule_jobs_errored (training_job = mx .latest_training_job )
436
436
437
437
438
+ def test_mxnet_with_debugger_hook_config_disabled (
439
+ sagemaker_session , mxnet_full_version , cpu_instance_type
440
+ ):
441
+ with timeout (minutes = TRAINING_DEFAULT_TIMEOUT_MINUTES ):
442
+ script_path = os .path .join (DATA_DIR , "mxnet_mnist" , "mnist_gluon.py" )
443
+ data_path = os .path .join (DATA_DIR , "mxnet_mnist" )
444
+
445
+ mx = MXNet (
446
+ entry_point = script_path ,
447
+ role = "SageMakerRole" ,
448
+ framework_version = mxnet_full_version ,
449
+ py_version = PYTHON_VERSION ,
450
+ train_instance_count = 1 ,
451
+ train_instance_type = cpu_instance_type ,
452
+ sagemaker_session = sagemaker_session ,
453
+ debugger_hook_config = False ,
454
+ )
455
+
456
+ train_input = mx .sagemaker_session .upload_data (
457
+ path = os .path .join (data_path , "train" ), key_prefix = "integ-test-data/mxnet_mnist/train"
458
+ )
459
+ test_input = mx .sagemaker_session .upload_data (
460
+ path = os .path .join (data_path , "test" ), key_prefix = "integ-test-data/mxnet_mnist/test"
461
+ )
462
+
463
+ mx .fit ({"train" : train_input , "test" : test_input })
464
+
465
+ job_description = mx .latest_training_job .describe ()
466
+
467
+ assert job_description .get ("DebugHookConfig" ) is None
468
+
469
+
438
470
def _get_custom_rule (session ):
439
471
script_path = os .path .join (DATA_DIR , "mxnet_mnist" , "my_custom_rule.py" )
440
472
0 commit comments