@@ -240,16 +240,20 @@ def test_multi_data_model_deploy_pretrained_models_local_mode(container_image, s
240240
241241
242242def test_multi_data_model_deploy_trained_model_from_framework_estimator (
243- container_image , sagemaker_session , cpu_instance_type
243+ container_image , sagemaker_session , cpu_instance_type , mxnet_full_version , mxnet_full_py_version
244244):
245245 timestamp = sagemaker_timestamp ()
246246 endpoint_name = "test-multimodel-endpoint-{}" .format (timestamp )
247247 model_name = "test-multimodel-{}" .format (timestamp )
248- mxnet_version = "1.4.1"
249248
250249 with timeout_and_delete_endpoint_by_name (endpoint_name , sagemaker_session ):
251- mxnet_model_1 = __mxnet_training_job (
252- sagemaker_session , container_image , mxnet_version , cpu_instance_type , 0.1
250+ mxnet_model_1 = _mxnet_training_job (
251+ sagemaker_session ,
252+ container_image ,
253+ mxnet_full_version ,
254+ mxnet_full_py_version ,
255+ cpu_instance_type ,
256+ 0.1 ,
253257 )
254258 model_data_prefix = os .path .join (
255259 "s3://" , sagemaker_session .default_bucket (), "multimodel-{}/" .format (timestamp )
@@ -267,8 +271,13 @@ def test_multi_data_model_deploy_trained_model_from_framework_estimator(
267271 multi_data_model .deploy (1 , cpu_instance_type , endpoint_name = endpoint_name )
268272
269273 # Train another model
270- mxnet_model_2 = __mxnet_training_job (
271- sagemaker_session , container_image , mxnet_version , cpu_instance_type , 0.01
274+ mxnet_model_2 = _mxnet_training_job (
275+ sagemaker_session ,
276+ container_image ,
277+ mxnet_full_version ,
278+ mxnet_full_py_version ,
279+ cpu_instance_type ,
280+ 0.01 ,
272281 )
273282 # Deploy newly trained model
274283 multi_data_model .add_model (mxnet_model_2 .model_data , PRETRAINED_MODEL_PATH_2 )
@@ -308,7 +317,7 @@ def test_multi_data_model_deploy_trained_model_from_framework_estimator(
308317 assert "Could not find endpoint" in str (exception .value )
309318
310319
311- def __mxnet_training_job (
320+ def _mxnet_training_job (
312321 sagemaker_session ,
313322 container_image ,
314323 mxnet_full_version ,
0 commit comments