@@ -93,6 +93,8 @@ def test_mxnet_with_default_profiler_config_and_profiler_rule(
93
93
)
94
94
95
95
job_description = mx .latest_training_job .describe ()
96
+ if "DisableProfiler" in job_description ["ProfilerConfig" ]:
97
+ job_description ["ProfilerConfig" ].pop ("DisableProfiler" )
96
98
assert (
97
99
job_description ["ProfilerConfig" ]
98
100
== ProfilerConfig (
@@ -153,6 +155,8 @@ def test_mxnet_with_custom_profiler_config_then_update_rule_and_config(
153
155
)
154
156
155
157
job_description = mx .latest_training_job .describe ()
158
+ if "DisableProfiler" in job_description ["ProfilerConfig" ]:
159
+ job_description ["ProfilerConfig" ].pop ("DisableProfiler" )
156
160
assert job_description .get ("ProfilerConfig" ) == profiler_config ._to_request_dict ()
157
161
assert job_description .get ("ProfilingStatus" ) == "Enabled"
158
162
@@ -221,6 +225,8 @@ def test_mxnet_with_built_in_profiler_rule_with_custom_parameters(
221
225
)
222
226
223
227
job_description = mx .latest_training_job .describe ()
228
+ if "DisableProfiler" in job_description ["ProfilerConfig" ]:
229
+ job_description ["ProfilerConfig" ].pop ("DisableProfiler" )
224
230
assert job_description .get ("ProfilingStatus" ) == "Enabled"
225
231
assert (
226
232
job_description .get ("ProfilerConfig" )
@@ -292,6 +298,8 @@ def test_mxnet_with_profiler_and_debugger_then_disable_framework_metrics(
292
298
)
293
299
294
300
job_description = mx .latest_training_job .describe ()
301
+ if "DisableProfiler" in job_description ["ProfilerConfig" ]:
302
+ job_description ["ProfilerConfig" ].pop ("DisableProfiler" )
295
303
assert job_description ["ProfilerConfig" ] == profiler_config ._to_request_dict ()
296
304
assert job_description ["DebugHookConfig" ] == debugger_hook_config ._to_request_dict ()
297
305
assert job_description .get ("ProfilingStatus" ) == "Enabled"
0 commit comments