Skip to content

Commit d666bbd

Browse files
feature: upgrade neo mxnet to 1.8 (#2235)
Co-authored-by: icywang86rui <[email protected]>
1 parent 999fb22 commit d666bbd

File tree

3 files changed

+18
-17
lines changed

3 files changed

+18
-17
lines changed

src/sagemaker/image_uri_config/neo-mxnet.json

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,21 @@
22
"processors": ["cpu", "gpu"],
33
"scope": ["inference"],
44
"version_aliases": {
5-
"0.12.1": "1.7",
6-
"1.0.0": "1.7",
7-
"1.1.0": "1.7",
8-
"1.2": "1.7",
9-
"1.2.0": "1.7",
10-
"1.2.1": "1.7",
11-
"1.3": "1.7",
12-
"1.3.0": "1.7",
13-
"1.4": "1.7",
14-
"1.4.0": "1.7",
15-
"1.4.1": "1.7"
5+
"0.12.1": "1.8",
6+
"1.0.0": "1.8",
7+
"1.1.0": "1.8",
8+
"1.2": "1.8",
9+
"1.2.0": "1.8",
10+
"1.2.1": "1.8",
11+
"1.3": "1.8",
12+
"1.3.0": "1.8",
13+
"1.4": "1.8",
14+
"1.4.0": "1.8",
15+
"1.4.1": "1.8",
16+
"1.7": "1.8"
1617
},
1718
"versions": {
18-
"1.7": {
19+
"1.8": {
1920
"py_versions": ["py3"],
2021
"registries": {
2122
"af-south-1": "774647643957",

tests/data/mxnet_mnist/mnist_neo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def train(
105105

106106

107107
def model_fn(path_to_model_files):
108-
import neomxnet # noqa: F401
108+
import neomx # noqa: F401
109109

110110
ctx = mx.cpu()
111111
sym, arg_params, aux_params = mx.model.load_checkpoint(
@@ -120,7 +120,7 @@ def model_fn(path_to_model_files):
120120

121121

122122
def transform_fn(mod, payload, input_content_type, requested_output_content_type):
123-
import neomxnet # noqa: F401
123+
import neomx # noqa: F401
124124

125125
if input_content_type != "application/vnd+python.numpy+binary":
126126
raise RuntimeError("Input content type must be application/vnd+python.numpy+binary")

tests/integ/test_neo_mxnet.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def test_attach_deploy(
7171

7272
estimator.compile_model(
7373
target_instance_family=cpu_instance_family,
74-
input_shape={"data": [1, 1, 28, 28], "softmax_label": [1]},
74+
input_shape={"data": [1, 1, 28, 28]},
7575
output_path=estimator.output_path,
7676
)
7777

@@ -121,7 +121,7 @@ def test_deploy_model(
121121

122122
model.compile(
123123
target_instance_family=cpu_instance_family,
124-
input_shape={"data": [1, 1, 28, 28], "softmax_label": [1]},
124+
input_shape={"data": [1, 1, 28, 28]},
125125
role=role,
126126
job_name=unique_name_from_base("test-deploy-model-compilation-job"),
127127
output_path="/".join(model_data.split("/")[:-1]),
@@ -163,7 +163,7 @@ def test_inferentia_deploy_model(
163163

164164
model.compile(
165165
target_instance_family=inf_instance_family,
166-
input_shape={"data": [1, 1, 28, 28], "softmax_label": [1]},
166+
input_shape={"data": [1, 1, 28, 28]},
167167
role=role,
168168
job_name=unique_name_from_base("test-deploy-model-compilation-job"),
169169
output_path="/".join(model_data.split("/")[:-1]),

0 commit comments

Comments
 (0)