Skip to content

Commit

Permalink
fix: Do not specify S3 path for disabled profiler (#3546)
Browse files Browse the repository at this point in the history
Co-authored-by: Marius Moisescu <[email protected]>
  • Loading branch information
mariumof and Marius Moisescu authored Dec 19, 2022
1 parent 39918f4 commit bae3b8b
Showing 1 changed file with 5 additions and 1 deletion.
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

0 comments on commit bae3b8b

Please sign in to comment.