Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/sagemaker/debugger/profiler_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ def _to_request_dict(self):
"""
profiler_config_request = {}

if self.s3_output_path is not None:
if (
self.s3_output_path is not None
and self.disable_profiler is not None
and self.disable_profiler is False
):
profiler_config_request["S3OutputPath"] = self.s3_output_path

profiler_config_request["DisableProfiler"] = self.disable_profiler
Expand Down