File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
test/integration/sagemaker Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 21
21
22
22
23
23
def test_distributed_training_horovod (sagemaker_session ,
24
- sagemaker_local_session ,
25
24
instance_type ,
26
25
ecr_image ,
27
26
tmpdir ,
@@ -39,12 +38,13 @@ def test_distributed_training_horovod(sagemaker_session,
39
38
script_mode = True ,
40
39
hyperparameters = {'sagemaker_mpi_enabled' : True ,
41
40
'sagemaker_mpi_custom_mpi_options' : mpi_options ,
42
- 'sagemaker_mpi_num_of_processes_per_host' : 1 })
41
+ 'sagemaker_mpi_num_of_processes_per_host' : 1 },
42
+ sagemaker_session = sagemaker_session )
43
43
44
44
estimator .fit ()
45
45
46
46
model_data_source = sagemaker .local .data .get_data_source_instance (
47
- estimator .model_data , sagemaker . session . Session () )
47
+ estimator .model_data , sagemaker_session )
48
48
49
49
for filename in model_data_source .get_file_list ():
50
50
assert os .path .basename (filename ) == 'model.tar.gz'
You can’t perform that action at this time.
0 commit comments