Skip to content

Commit 9361b16

Browse files
committed
fix function call
1 parent 4f0761e commit 9361b16

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

tests/integ/test_chainer_train.py

+14-6
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,21 @@
2525

2626

2727
@pytest.fixture(scope="module")
28-
def chainer_local_training_job(sagemaker_local_session, chainer_full_version):
29-
return _run_mnist_training_job(sagemaker_local_session, "local", 1, chainer_full_version)
28+
def chainer_local_training_job(
29+
sagemaker_local_session, chainer_full_version, chainer_full_py_version
30+
):
31+
return _run_mnist_training_job(
32+
sagemaker_local_session, "local", 1, chainer_full_version, chainer_full_py_version
33+
)
3034

3135

3236
@pytest.mark.local_mode
33-
def test_distributed_cpu_training(sagemaker_local_session, chainer_full_version):
34-
_run_mnist_training_job(sagemaker_local_session, "local", 2, chainer_full_version)
37+
def test_distributed_cpu_training(
38+
sagemaker_local_session, chainer_full_version, chainer_full_py_version
39+
):
40+
_run_mnist_training_job(
41+
sagemaker_local_session, "local", 2, chainer_full_version, chainer_full_py_version
42+
)
3543

3644

3745
@pytest.mark.local_mode
@@ -129,7 +137,7 @@ def test_deploy_model(
129137

130138

131139
def _run_mnist_training_job(
132-
sagemaker_session, instance_type, instance_count, chainer_version, py_version, wait=True
140+
sagemaker_session, instance_type, instance_count, chainer_version, py_version
133141
):
134142
script_path = (
135143
os.path.join(DATA_DIR, "chainer_mnist", "mnist.py")
@@ -156,7 +164,7 @@ def _run_mnist_training_job(
156164
test_input = "file://" + os.path.join(data_path, "test")
157165

158166
job_name = unique_name_from_base("test-chainer-training")
159-
chainer.fit({"train": train_input, "test": test_input}, wait=wait, job_name=job_name)
167+
chainer.fit({"train": train_input, "test": test_input}, job_name=job_name)
160168
return chainer
161169

162170

0 commit comments

Comments
 (0)