Skip to content

Commit 6ea6eca

Browse files
committed
Revert "Revert "Removed unnecessary mnist scripts.""
This reverts commit 6e1e1a9.
1 parent 6e1e1a9 commit 6ea6eca

File tree

7 files changed

+5
-159
lines changed

7 files changed

+5
-159
lines changed

test-toolkit/integration/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,9 @@
2424
eia_sub_dir = 'model_eia'
2525

2626
model_cpu_dir = os.path.join(mnist_path, cpu_sub_dir)
27-
mnist_cpu_script = os.path.join(model_cpu_dir, 'mnist.py')
2827
model_cpu_1d_dir = os.path.join(model_cpu_dir, '1d')
2928
mnist_1d_script = os.path.join(model_cpu_1d_dir, 'mnist_1d.py')
3029
model_gpu_dir = os.path.join(mnist_path, gpu_sub_dir)
31-
mnist_gpu_script = os.path.join(model_gpu_dir, 'mnist.py')
32-
model_gpu_1d_dir = os.path.join(model_gpu_dir, '1d')
3330
model_eia_dir = os.path.join(mnist_path, eia_sub_dir)
3431
mnist_eia_script = os.path.join(model_eia_dir, 'mnist.py')
3532
call_model_fn_once_script = os.path.join(resources_path, 'call_model_fn_once.py')

test-toolkit/integration/sagemaker/test_mnist.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,22 @@
1919
import sagemaker
2020
from sagemaker.pytorch import PyTorchModel
2121

22-
from integration import model_cpu_dir, mnist_cpu_script, mnist_gpu_script, model_eia_dir, mnist_eia_script
22+
from integration import model_cpu_dir, mnist_script, model_eia_dir, mnist_eia_script
2323
from integration.sagemaker.timeout import timeout_and_delete_endpoint
2424

2525

2626
@pytest.mark.cpu_test
2727
def test_mnist_cpu(sagemaker_session, image_uri, instance_type):
2828
instance_type = instance_type or 'ml.c4.xlarge'
2929
model_dir = os.path.join(model_cpu_dir, 'model_mnist.tar.gz')
30-
_test_mnist_distributed(sagemaker_session, image_uri, instance_type, model_dir, mnist_cpu_script)
30+
_test_mnist_distributed(sagemaker_session, image_uri, instance_type, model_dir, mnist_script)
3131

3232

3333
@pytest.mark.gpu_test
3434
def test_mnist_gpu(sagemaker_session, image_uri, instance_type):
3535
instance_type = instance_type or 'ml.p2.xlarge'
3636
model_dir = os.path.join(model_cpu_dir, 'model_mnist.tar.gz')
37-
_test_mnist_distributed(sagemaker_session, image_uri, instance_type, model_dir, mnist_gpu_script)
37+
_test_mnist_distributed(sagemaker_session, image_uri, instance_type, model_dir, mnist_script)
3838

3939

4040
@pytest.mark.eia_test

test-toolkit/resources/mnist/model_cpu/call_model_fn_once.py

Lines changed: 0 additions & 37 deletions
This file was deleted.

test-toolkit/resources/mnist/model_cpu/mnist.py

Lines changed: 0 additions & 57 deletions
This file was deleted.

test-toolkit/resources/mnist/model_eia/mnist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1+
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License"). You
44
# may not use this file except in compliance with the License. A copy of

test-toolkit/resources/mnist/model_gpu/mnist.py

Lines changed: 0 additions & 57 deletions
This file was deleted.

test-toolkit/utils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1+
# Copyright 2019-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License"). You
44
# may not use this file except in compliance with the License. A copy of

0 commit comments

Comments
 (0)