Skip to content

Commit d301784

Browse files
committed
fix condition
1 parent d8b5a73 commit d301784

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sagemaker/modules/train/model_trainer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ def model_post_init(self, __context: Any):
529529
"Must be a valid JSON or YAML file."
530530
)
531531

532-
if self.training_mode == Mode.SAGEMAKER_TRAINING_JOB and self.output_data_config is None:
532+
if self.training_mode == Mode.SAGEMAKER_TRAINING_JOB:
533533
if self.output_data_config is None:
534534
session = self.sagemaker_session
535535
base_job_name = self.base_job_name

0 commit comments

Comments
 (0)