Skip to content

Commit d603c51

Browse files
committed
Do not use local mode in integ tests yet.
1 parent b15b7c2 commit d603c51

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/integ/test_pytorch_train.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ def fixture_training_job(sagemaker_session, pytorch_full_version, instance_type)
3232
return pytorch.latest_training_job.name
3333

3434

35-
def test_sync_fit(sagemaker_session, pytorch_full_version, instance_type):
35+
def test_sync_fit(sagemaker_session, pytorch_full_version):
3636
training_job_name = ""
37+
# TODO: add tests against local mode when it's ready to be used
38+
instance_type = 'ml.p2.xlarge'
3739

3840
with timeout(minutes=15):
3941
pytorch = PyTorch(entry_point=MNIST_SCRIPT, role='SageMakerRole', framework_version=pytorch_full_version,
@@ -48,8 +50,10 @@ def test_sync_fit(sagemaker_session, pytorch_full_version, instance_type):
4850
PyTorch.attach(training_job_name, sagemaker_session=sagemaker_session)
4951

5052

51-
def test_async_fit(sagemaker_session, pytorch_full_version, instance_type):
53+
def test_async_fit(sagemaker_session, pytorch_full_version):
5254
training_job_name = ""
55+
# TODO: add tests against local mode when it's ready to be used
56+
instance_type = 'ml.c4.xlarge'
5357

5458
with timeout(minutes=10):
5559
pytorch = PyTorch(entry_point=MNIST_SCRIPT, role='SageMakerRole', framework_version=pytorch_full_version,

0 commit comments

Comments
 (0)