Skip to content

Commit

Permalink
Update integration test to current sagemaker-python-sdk API.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidthomas426 committed Feb 1, 2023
1 parent 7bd66ed commit 163a730
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/integration/local/test_serving.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ def test_serving_calls_model_fn_once(image_uri, sagemaker_local_session, instanc
@contextmanager
def _predictor(model_tar, script, image, sagemaker_local_session, instance_type,
model_server_workers=None):
model = PyTorchModel('file://{}'.format(model_tar),
ROLE,
script,
image=image,
model = PyTorchModel(model_data='file://{}'.format(model_tar),
role=ROLE,
entry_point=script,
image_uri=image,
sagemaker_session=sagemaker_local_session,
model_server_workers=model_server_workers)

Expand Down

0 comments on commit 163a730

Please sign in to comment.