Skip to content

Commit 679170c

Browse files
author
Chuyang Deng
committed
resolve flake8 errors
1 parent 3be2a11 commit 679170c

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

tests/integ/test_pytorch.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ def fixture_training_job(
5757

5858
@pytest.fixture(scope="module", name="pytorch_training_job_with_latest_infernce_version")
5959
def fixture_training_job_with_latest_inference_version(
60-
sagemaker_session,
61-
pytorch_inference_latest_version,
62-
pytorch_inference_latest_py_version,
63-
cpu_instance_type,
60+
sagemaker_session,
61+
pytorch_inference_latest_version,
62+
pytorch_inference_latest_py_version,
63+
cpu_instance_type,
6464
):
6565
with timeout(minutes=TRAINING_DEFAULT_TIMEOUT_MINUTES):
6666
pytorch = _get_pytorch_estimator(
@@ -74,10 +74,14 @@ def fixture_training_job_with_latest_inference_version(
7474

7575

7676
@pytest.mark.canary_quick
77-
def test_fit_deploy(pytorch_training_job_with_latest_infernce_version, sagemaker_session, cpu_instance_type):
77+
def test_fit_deploy(
78+
pytorch_training_job_with_latest_infernce_version, sagemaker_session, cpu_instance_type
79+
):
7880
endpoint_name = "test-pytorch-sync-fit-attach-deploy{}".format(sagemaker_timestamp())
7981
with timeout_and_delete_endpoint_by_name(endpoint_name, sagemaker_session):
80-
estimator = PyTorch.attach(pytorch_training_job, sagemaker_session=sagemaker_session)
82+
estimator = PyTorch.attach(
83+
pytorch_training_job_with_latest_infernce_version, sagemaker_session=sagemaker_session
84+
)
8185
predictor = estimator.deploy(1, cpu_instance_type, endpoint_name=endpoint_name)
8286
data = numpy.zeros(shape=(1, 1, 28, 28), dtype=numpy.float32)
8387
predictor.predict(data)

0 commit comments

Comments
 (0)