File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -746,11 +746,10 @@ def test_mxnet_with_debugger_hook_config_disabled(
746
746
747
747
mx .fit ({"train" : train_input , "test" : test_input })
748
748
749
- assert mx .environment .get (DEBUGGER_FLAG ) == "0"
750
-
751
749
job_description = mx .latest_training_job .describe ()
752
750
753
751
assert job_description .get ("DebugHookConfig" ) is None
752
+ assert job_description .get ("Environment" , {}).get ("USE_SMDEBUG" ) == "0"
754
753
755
754
756
755
def _get_rule_evaluation_statuses (job_description ):
Original file line number Diff line number Diff line change 23
23
patch ,
24
24
)
25
25
26
- from sagemaker .debugger import ProfilerConfig
26
+ from sagemaker .debugger import DEBUGGER_FLAG , ProfilerConfig
27
27
from sagemaker .estimator import Estimator
28
28
from sagemaker .tensorflow import TensorFlow
29
29
from sagemaker .inputs import TrainingInput , TransformInput , CreateModelInput
@@ -275,6 +275,7 @@ def test_training_step_tensorflow(sagemaker_session):
275
275
"sagemaker_distributed_dataparallel_custom_mpi_options" : '""' ,
276
276
},
277
277
"ProfilerConfig" : {"S3OutputPath" : "s3://my-bucket/" },
278
+ "Environment" : {DEBUGGER_FLAG : "0" }
278
279
},
279
280
"CacheConfig" : {"Enabled" : True , "ExpireAfter" : "PT1H" },
280
281
}
You can’t perform that action at this time.
0 commit comments