26
26
27
27
@pytest .fixture (scope = "module" )
28
28
def chainer_local_training_job (
29
- sagemaker_local_session , chainer_full_version , chainer_full_py_version
29
+ sagemaker_local_session , chainer_latest_version , chainer_latest_py_version
30
30
):
31
31
return _run_mnist_training_job (
32
- sagemaker_local_session , "local" , 1 , chainer_full_version , chainer_full_py_version
32
+ sagemaker_local_session , "local" , 1 , chainer_latest_version , chainer_latest_py_version
33
33
)
34
34
35
35
36
36
@pytest .mark .local_mode
37
37
def test_distributed_cpu_training (
38
- sagemaker_local_session , chainer_full_version , chainer_full_py_version
38
+ sagemaker_local_session , chainer_latest_version , chainer_latest_py_version
39
39
):
40
40
_run_mnist_training_job (
41
- sagemaker_local_session , "local" , 2 , chainer_full_version , chainer_full_py_version
41
+ sagemaker_local_session , "local" , 2 , chainer_latest_version , chainer_latest_py_version
42
42
)
43
43
44
44
45
45
@pytest .mark .local_mode
46
46
def test_training_with_additional_hyperparameters (
47
- sagemaker_local_session , chainer_full_version , chainer_full_py_version
47
+ sagemaker_local_session , chainer_latest_version , chainer_latest_py_version
48
48
):
49
49
script_path = os .path .join (DATA_DIR , "chainer_mnist" , "mnist.py" )
50
50
data_path = os .path .join (DATA_DIR , "chainer_mnist" )
@@ -54,8 +54,8 @@ def test_training_with_additional_hyperparameters(
54
54
role = "SageMakerRole" ,
55
55
instance_count = 1 ,
56
56
instance_type = "local" ,
57
- framework_version = chainer_full_version ,
58
- py_version = chainer_full_py_version ,
57
+ framework_version = chainer_latest_version ,
58
+ py_version = chainer_latest_py_version ,
59
59
sagemaker_session = sagemaker_local_session ,
60
60
hyperparameters = {"epochs" : 1 },
61
61
use_mpi = True ,
@@ -72,7 +72,7 @@ def test_training_with_additional_hyperparameters(
72
72
73
73
@pytest .mark .canary_quick
74
74
def test_attach_deploy (
75
- sagemaker_session , chainer_full_version , chainer_full_py_version , cpu_instance_type
75
+ sagemaker_session , chainer_latest_version , chainer_latest_py_version , cpu_instance_type
76
76
):
77
77
with timeout (minutes = TRAINING_DEFAULT_TIMEOUT_MINUTES ):
78
78
script_path = os .path .join (DATA_DIR , "chainer_mnist" , "mnist.py" )
@@ -81,8 +81,8 @@ def test_attach_deploy(
81
81
chainer = Chainer (
82
82
entry_point = script_path ,
83
83
role = "SageMakerRole" ,
84
- framework_version = chainer_full_version ,
85
- py_version = chainer_full_py_version ,
84
+ framework_version = chainer_latest_version ,
85
+ py_version = chainer_latest_py_version ,
86
86
instance_count = 1 ,
87
87
instance_type = cpu_instance_type ,
88
88
sagemaker_session = sagemaker_session ,
@@ -114,8 +114,8 @@ def test_attach_deploy(
114
114
def test_deploy_model (
115
115
chainer_local_training_job ,
116
116
sagemaker_local_session ,
117
- chainer_full_version ,
118
- chainer_full_py_version ,
117
+ chainer_latest_version ,
118
+ chainer_latest_py_version ,
119
119
):
120
120
script_path = os .path .join (DATA_DIR , "chainer_mnist" , "mnist.py" )
121
121
@@ -124,8 +124,8 @@ def test_deploy_model(
124
124
"SageMakerRole" ,
125
125
entry_point = script_path ,
126
126
sagemaker_session = sagemaker_local_session ,
127
- framework_version = chainer_full_version ,
128
- py_version = chainer_full_py_version ,
127
+ framework_version = chainer_latest_version ,
128
+ py_version = chainer_latest_py_version ,
129
129
)
130
130
131
131
predictor = model .deploy (1 , "local" )
0 commit comments