We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9d0e27 commit 565af7cCopy full SHA for 565af7c
src/sagemaker/model.py
@@ -620,15 +620,13 @@ def _compilation_job_config(
620
}
621
622
if (
623
- framework.lower() == "pytorch"
+ framework.lower() == "pytorch" or framework.lower() == "tensorflow"
624
+ and target_instance_type is not None
625
and re.match("(?=^ml_)(?!ml_inf)", target_instance_type) is not None
626
and framework_version is not None
627
):
628
input_model_config["FrameworkVersion"] = utils.get_short_version(framework_version)
629
- if framework.lower() == "tensorflow" and framework_version is not None:
630
- input_model_config["FrameworkVersion"] = framework_version
631
-
632
role = self.sagemaker_session.expand_role(role)
633
output_model_config = {
634
"S3OutputLocation": output_path,
0 commit comments