Skip to content

Commit 9b25f3f

Browse files
author
Mike Schneider
committed
solve py38 issue and training addition
1 parent bf203e3 commit 9b25f3f

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/sagemaker/fw_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@
131131
"1.12",
132132
"1.12.0",
133133
"1.12.1",
134+
"1.13.1",
134135
],
135136
}
136137

@@ -143,6 +144,7 @@
143144
"1.12",
144145
"1.12.0",
145146
"1.12.1",
147+
"1.13.1"
146148
]
147149

148150

tests/conftest.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,10 @@ def pytorch_training_py_version(pytorch_training_version, request):
224224
if Version(pytorch_training_version) < Version("1.5.0"):
225225
return request.param
226226
elif Version(pytorch_training_version) >= Version("1.9"):
227-
return "py38"
227+
if Version(pytorch_inference_version) >= Version("1.13.1"):
228+
return "py39"
229+
else:
230+
return "py38"
228231
else:
229232
return "py3"
230233

@@ -234,7 +237,10 @@ def pytorch_inference_py_version(pytorch_inference_version, request):
234237
if Version(pytorch_inference_version) < Version("1.4.0"):
235238
return request.param
236239
elif Version(pytorch_inference_version) >= Version("1.9"):
237-
return "py38"
240+
if Version(pytorch_inference_version) >= Version("1.13.1"):
241+
return "py39"
242+
else:
243+
return "py38"
238244
else:
239245
return "py3"
240246

0 commit comments

Comments
 (0)