File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -620,15 +620,13 @@ def _compilation_job_config(
620
620
}
621
621
622
622
if (
623
- framework .lower () == "pytorch"
623
+ framework .lower () == "pytorch" or framework .lower () == "tensorflow"
624
+ and target_instance_type is not None
624
625
and re .match ("(?=^ml_)(?!ml_inf)" , target_instance_type ) is not None
625
626
and framework_version is not None
626
627
):
627
628
input_model_config ["FrameworkVersion" ] = utils .get_short_version (framework_version )
628
629
629
- if framework .lower () == "tensorflow" and framework_version is not None :
630
- input_model_config ["FrameworkVersion" ] = framework_version
631
-
632
630
role = self .sagemaker_session .expand_role (role )
633
631
output_model_config = {
634
632
"S3OutputLocation" : output_path ,
You can’t perform that action at this time.
0 commit comments