File tree 2 files changed +5
-4
lines changed
tests/unit/sagemaker/model
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -626,8 +626,11 @@ def _compilation_job_config(
626
626
):
627
627
input_model_config ["FrameworkVersion" ] = utils .get_short_version (framework_version )
628
628
629
- if framework .lower () == "tensorflow" :
630
- input_model_config ["FrameworkVersion" ] = utils .get_short_version (framework_version )
629
+ if (
630
+ framework .lower () == "tensorflow"
631
+ and framework_version is not None
632
+ ):
633
+ input_model_config ["FrameworkVersion" ] = framework_version
631
634
632
635
role = self .sagemaker_session .expand_role (role )
633
636
output_model_config = {
Original file line number Diff line number Diff line change @@ -103,7 +103,6 @@ def test_compile_model_linux_arm64_nvidia(sagemaker_session):
103
103
output_path = "s3://output" ,
104
104
role = "role" ,
105
105
framework = "tensorflow" ,
106
- framework_version = "1.15.3" ,
107
106
job_name = "compile-model" ,
108
107
target_platform_os = "LINUX" ,
109
108
target_platform_arch = "ARM64" ,
@@ -124,7 +123,6 @@ def test_compile_model_android_armv7(sagemaker_session):
124
123
output_path = "s3://output" ,
125
124
role = "role" ,
126
125
framework = "tensorflow" ,
127
- framework_version = "1.15.3" ,
128
126
job_name = "compile-model" ,
129
127
target_platform_os = "ANDROID" ,
130
128
target_platform_arch = "ARM_EABI" ,
You can’t perform that action at this time.
0 commit comments