Skip to content

Commit fac621a

Browse files
committed
update
1 parent 5657fd4 commit fac621a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/sagemaker/model.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,12 +621,14 @@ def _compilation_job_config(
621621

622622
if (
623623
framework.lower() == "pytorch"
624-
or framework.lower() == "tensorflow"
625624
and re.match("(?=^ml_)(?!ml_inf)", target_instance_type) is not None
626625
and framework_version is not None
627626
):
628627
input_model_config["FrameworkVersion"] = utils.get_short_version(framework_version)
629628

629+
if framework.lower() == "tensorflow":
630+
input_model_config["FrameworkVersion"] = framework_version
631+
630632
role = self.sagemaker_session.expand_role(role)
631633
output_model_config = {
632634
"S3OutputLocation": output_path,

0 commit comments

Comments
 (0)