Skip to content

Commit a7f5c33

Browse files
committed
change: Updating Sagemaker Neo to be current with the cli
1 parent 91e658c commit a7f5c33

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/sagemaker/model.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,18 @@
2323

2424
LOGGER = logging.getLogger('sagemaker')
2525

26-
NEO_ALLOWED_TARGET_INSTANCE_FAMILY = set(['ml_c5', 'ml_m5', 'ml_c4', 'ml_m4', 'jetson_tx1', 'jetson_tx2', 'ml_p2',
27-
'ml_p3', 'deeplens', 'rasp3b'])
26+
NEO_ALLOWED_TARGET_INSTANCE_FAMILY = set(['ml_c5', 'ml_m5', 'ml_c4', 'ml_m4',
27+
'jetson_tx1', 'jetson_tx2', 'jetson_nano', 'ml_p2',
28+
'ml_p3', 'deeplens', 'rasp3b',
29+
'rk3288', 'rk3399', 'sbe_c'])
2830
NEO_ALLOWED_FRAMEWORKS = set(['mxnet', 'tensorflow', 'pytorch', 'onnx', 'xgboost'])
2931

3032
NEO_IMAGE_ACCOUNT = {
3133
'us-west-2': '301217895009',
3234
'us-east-1': '785573368785',
3335
'eu-west-1': '802834080501',
34-
'us-east-2': '007439368137'
36+
'us-east-2': '007439368137',
37+
'ap-northeast-1': '941853720454'
3538
}
3639

3740

tests/unit/test_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ def test_check_neo_region(sagemaker_session, tmpdir):
415415
'ap-northeast-3', 'ap-northeast-2', 'ap-southeast-1', 'ap-southeast-2', 'ap-northeast-1',
416416
'ca-central-1', 'cn-north-1', 'cn-northwest-1', 'eu-central-1', ' eu-west-1', 'eu-west-2',
417417
'eu-west-3', 'eu-north-1', 'sa-east-1', 'us-gov-east-1', 'us-gov-west-1']
418-
neo_support_region = ['us-west-2', 'eu-west-1', 'us-east-1', 'us-east-2']
418+
neo_support_region = ['us-west-2', 'eu-west-1', 'us-east-1', 'us-east-2', 'ap-northeast-1']
419419
for region_name in ec2_region_list:
420420
if region_name in neo_support_region:
421421
assert model.check_neo_region(region_name) is True

0 commit comments

Comments
 (0)