File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 51
51
52
52
@pytest .mark .local_mode
53
53
def test_github (
54
- sagemaker_local_session , pytorch_training_latest_version , pytorch_training_latest_py_version
54
+ sagemaker_local_session , pytorch_inference_latest_version , pytorch_inference_latest_py_version
55
55
):
56
56
script_path = "mnist.py"
57
57
git_config = {"repo" : GIT_REPO , "branch" : BRANCH , "commit" : COMMIT }
@@ -60,8 +60,8 @@ def test_github(
60
60
entry_point = script_path ,
61
61
role = "SageMakerRole" ,
62
62
source_dir = "pytorch" ,
63
- framework_version = pytorch_training_latest_version ,
64
- py_version = pytorch_training_latest_py_version ,
63
+ framework_version = pytorch_inference_latest_version ,
64
+ py_version = pytorch_inference_latest_py_version ,
65
65
instance_count = 1 ,
66
66
instance_type = "local" ,
67
67
sagemaker_session = sagemaker_local_session ,
Original file line number Diff line number Diff line change @@ -95,13 +95,13 @@ def test_fit_deploy(
95
95
96
96
@pytest .mark .local_mode
97
97
def test_local_fit_deploy (
98
- sagemaker_local_session , pytorch_training_latest_version , pytorch_training_latest_py_version
98
+ sagemaker_local_session , pytorch_inference_latest_version , pytorch_inference_latest_py_version
99
99
):
100
100
pytorch = PyTorch (
101
101
entry_point = MNIST_SCRIPT ,
102
102
role = "SageMakerRole" ,
103
- framework_version = pytorch_training_latest_version ,
104
- py_version = pytorch_training_latest_py_version ,
103
+ framework_version = pytorch_inference_latest_version ,
104
+ py_version = pytorch_inference_latest_py_version ,
105
105
instance_count = 1 ,
106
106
instance_type = "local" ,
107
107
sagemaker_session = sagemaker_local_session ,
Original file line number Diff line number Diff line change @@ -748,8 +748,8 @@ def test_tuning_chainer(
748
748
def test_attach_tuning_pytorch (
749
749
sagemaker_session ,
750
750
cpu_instance_type ,
751
- pytorch_training_latest_version ,
752
- pytorch_training_latest_py_version ,
751
+ pytorch_inference_latest_version ,
752
+ pytorch_inference_latest_py_version ,
753
753
):
754
754
mnist_dir = os .path .join (DATA_DIR , "pytorch_mnist" )
755
755
mnist_script = os .path .join (mnist_dir , "mnist.py" )
@@ -758,8 +758,8 @@ def test_attach_tuning_pytorch(
758
758
entry_point = mnist_script ,
759
759
role = "SageMakerRole" ,
760
760
instance_count = 1 ,
761
- framework_version = pytorch_training_latest_version ,
762
- py_version = pytorch_training_latest_py_version ,
761
+ framework_version = pytorch_inference_latest_version ,
762
+ py_version = pytorch_inference_latest_py_version ,
763
763
instance_type = cpu_instance_type ,
764
764
sagemaker_session = sagemaker_session ,
765
765
)
You can’t perform that action at this time.
0 commit comments