Skip to content

Commit 453807d

Browse files
committed
fixed tests and added 0.7 to inference
1 parent fd79ef0 commit 453807d

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/sagemaker/image_uri_config/autogluon.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,8 @@
344344
"0.3": "0.3.2",
345345
"0.4": "0.4.3",
346346
"0.5": "0.5.2",
347-
"0.6": "0.6.2"
347+
"0.6": "0.6.2",
348+
"0.7": "0.7.0"
348349
},
349350
"versions": {
350351
"0.3.1": {
@@ -659,7 +660,7 @@
659660
"processors": ["cpu", "gpu"],
660661
"py_versions": ["py38"]
661662
},
662-
"0.6.2": {
663+
"0.7.0": {
663664
"registries": {
664665
"af-south-1": "626614931356",
665666
"ap-east-1": "871362719292",

tests/unit/sagemaker/image_uris/test_autogluon.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,12 @@
7070
@pytest.mark.parametrize("processor", PROCESSORS)
7171
def test_valid_uris_training(version, scope, processor):
7272
instance_type = "ml.c4.xlarge" if processor == "cpu" else "ml.p2.xlarge"
73-
py_version = "py37" if version == "0.3.1" else "py38"
73+
if version == "0.3.1":
74+
py_version = "py37"
75+
elif version < "0.7":
76+
py_version = "py38"
77+
else:
78+
py_version = "py39"
7479
if (
7580
scope == "inference"
7681
and processor == "gpu"

0 commit comments

Comments
 (0)