From 75fc8489b2474e5d3249793310dea4b619501bdb Mon Sep 17 00:00:00 2001 From: Arya Mohapatra <55232053+aryamohapatra@users.noreply.github.com> Date: Mon, 14 Dec 2020 11:48:50 +0530 Subject: [PATCH 1/4] Update sm_train.yml --- .github/workflows/sm_train.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sm_train.yml b/.github/workflows/sm_train.yml index 9d5be2b..a67dff5 100644 --- a/.github/workflows/sm_train.yml +++ b/.github/workflows/sm_train.yml @@ -17,6 +17,8 @@ jobs: - name: Setup Python environment uses: actions/setup-python@v1.1.1 + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' - name: Install requirements run: pip install --requirement requirements.txt @@ -33,4 +35,4 @@ jobs: run: | python sm_train.py - \ No newline at end of file + From 211ef4b95736976f2a8e403b9c97fd2b7c2af4ce Mon Sep 17 00:00:00 2001 From: Arya Mohapatra <55232053+aryamohapatra@users.noreply.github.com> Date: Mon, 14 Dec 2020 12:13:50 +0530 Subject: [PATCH 2/4] Added py_version='py3' --- sm_train.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sm_train.py b/sm_train.py index ccc2a77..408ed57 100644 --- a/sm_train.py +++ b/sm_train.py @@ -25,6 +25,7 @@ source_dir='code', role=role, framework_version='1.4.0', + py_version='py3', train_instance_count=2, train_instance_type='ml.c4.xlarge', metric_definitions=metric_definitions, From 38aef1e9421f7613ce89652f0d2e2d9fd9409325 Mon Sep 17 00:00:00 2001 From: Arya Mohapatra <55232053+aryamohapatra@users.noreply.github.com> Date: Mon, 14 Dec 2020 12:58:14 +0530 Subject: [PATCH 3/4] Update sm_train.py --- sm_train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sm_train.py b/sm_train.py index 408ed57..6755aa3 100644 --- a/sm_train.py +++ b/sm_train.py @@ -20,7 +20,7 @@ {'Name': 'train:epoch', 'Regex': 'Train_epoch=(.*?);'} ] - + estimator = PyTorch(entry_point='mnist.py', source_dir='code', role=role, From 394befc132402b4bda891abb1b9fa227630f7d0c Mon Sep 17 00:00:00 2001 From: Arya Mohapatra <55232053+aryamohapatra@users.noreply.github.com> Date: Mon, 14 Dec 2020 13:19:12 +0530 Subject: [PATCH 4/4] Update sm_train.py --- sm_train.py | 1 - 1 file changed, 1 deletion(-) diff --git a/sm_train.py b/sm_train.py index 6755aa3..8cf2ef2 100644 --- a/sm_train.py +++ b/sm_train.py @@ -25,7 +25,6 @@ source_dir='code', role=role, framework_version='1.4.0', - py_version='py3', train_instance_count=2, train_instance_type='ml.c4.xlarge', metric_definitions=metric_definitions,