Skip to content

Commit 7169a2d

Browse files
committed
trying logic a different way
1 parent 89c856b commit 7169a2d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/unit/sagemaker/image_uris/test_smp_v2.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,17 @@ def test_smp_v2(load_config):
3333
ACCOUNTS = load_config["training"]["versions"][version]["registries"]
3434
PY_VERSIONS = load_config["training"]["versions"][version]["py_versions"]
3535
for py_version in PY_VERSIONS:
36-
# py311 is only for PT 2.3.1 and SMP 2.4.0
37-
if py_version == "py311" and "2.3" not in version:
38-
continue
39-
4036
for region in ACCOUNTS.keys():
4137
for instance_type in CONTAINER_VERSIONS.keys():
4238
cuda_vers = CONTAINER_VERSIONS[instance_type]
4339
if "2.1" in version or "2.2" in version or "2.3" in version:
4440
cuda_vers = "cu121"
4541

42+
if "2.3" in version:
43+
py_version = "py311"
44+
45+
print(version, py_version)
46+
4647
uri = image_uris.get_training_image_uri(
4748
region,
4849
framework="pytorch",

0 commit comments

Comments
 (0)