Skip to content

Commit 3563f6a

Browse files
authored
change: remove NEO_ALLOWED_TARGET_INSTANCE_FAMILY (#1285)
1 parent acc0fd0 commit 3563f6a

File tree

2 files changed

+1
-27
lines changed

2 files changed

+1
-27
lines changed

src/sagemaker/estimator.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
)
4343
from sagemaker.job import _Job
4444
from sagemaker.local import LocalSession
45-
from sagemaker.model import Model, NEO_ALLOWED_TARGET_INSTANCE_FAMILY, NEO_ALLOWED_FRAMEWORKS
45+
from sagemaker.model import Model, NEO_ALLOWED_FRAMEWORKS
4646
from sagemaker.model import (
4747
SCRIPT_PARAM_NAME,
4848
DIR_PARAM_NAME,
@@ -511,11 +511,6 @@ def compile_model(
511511
sagemaker.model.Model: A SageMaker ``Model`` object. See
512512
:func:`~sagemaker.model.Model` for full details.
513513
"""
514-
if target_instance_family not in NEO_ALLOWED_TARGET_INSTANCE_FAMILY:
515-
raise ValueError(
516-
"Please use valid target_instance_family,"
517-
"allowed values: {}".format(NEO_ALLOWED_TARGET_INSTANCE_FAMILY)
518-
)
519514
if framework and framework not in NEO_ALLOWED_FRAMEWORKS:
520515
raise ValueError(
521516
"Please use valid framework, allowed values: {}".format(NEO_ALLOWED_FRAMEWORKS)

src/sagemaker/model.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -24,27 +24,6 @@
2424

2525
LOGGER = logging.getLogger("sagemaker")
2626

27-
NEO_ALLOWED_TARGET_INSTANCE_FAMILY = set(
28-
[
29-
"ml_c5",
30-
"ml_m5",
31-
"ml_c4",
32-
"ml_m4",
33-
"jetson_tx1",
34-
"jetson_tx2",
35-
"jetson_nano",
36-
"ml_p2",
37-
"ml_p3",
38-
"deeplens",
39-
"rasp3b",
40-
"rk3288",
41-
"rk3399",
42-
"sbe_c",
43-
"aisage",
44-
"qcs603",
45-
"qcs605",
46-
]
47-
)
4827
NEO_ALLOWED_FRAMEWORKS = set(["mxnet", "tensorflow", "keras", "pytorch", "onnx", "xgboost"])
4928

5029
NEO_IMAGE_ACCOUNT = {

0 commit comments

Comments
 (0)