We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5657fd4 commit fac621aCopy full SHA for fac621a
src/sagemaker/model.py
@@ -621,12 +621,14 @@ def _compilation_job_config(
621
622
if (
623
framework.lower() == "pytorch"
624
- or framework.lower() == "tensorflow"
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":
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