Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

[Enhancement] TPU tests for for pytorch 1.7, nightly (#807)

Edgar Riba4d69bf6fa766
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 4a4d98845..faf9bc7ef 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -38,6 +38,7 @@ references:
command: |
go get github.com/google/go-jsonnet/cmd/jsonnet
export PATH=$PATH:$HOME/go/bin
+ python -c "fname = 'docker/tpu-tests/tpu_test_cases.jsonnet' ; fff = open(fname).read().replace('pytorch-VERSION', 'pytorch-$PYTORCH_VER') ; open(fname, 'w').write(fff)"
job_name=$(jsonnet -J ml-testing-accelerators/ docker/tpu-tests/tpu_test_cases.jsonnet --ext-str image=$GCR_IMAGE_PATH --ext-str image-tag=$CIRCLE_WORKFLOW_JOB_ID | kubectl create -f -)
job_name=${job_name#job.batch/}
job_name=${job_name% created}
@@ -128,7 +129,7 @@ workflows:
matrix:
parameters:
python: ["3.6", "3.7"]
- pytorch: ["nightly"]
+ pytorch: ["1.7", "nightly"]
tpu-cleanup:
triggers:
- schedule:
diff --git a/docker/tpu-tests/tpu_test_cases.jsonnet b/docker/tpu-tests/tpu_test_cases.jsonnet
index e5c0c6f24..c82e9cc97 100644
--- a/docker/tpu-tests/tpu_test_cases.jsonnet
+++ b/docker/tpu-tests/tpu_test_cases.jsonnet
@@ -14,7 +14,7 @@ local tputests = base.BaseTest {
imageTag: std.extVar('image-tag'),
tpuSettings+: {
- softwareVersion: 'pytorch-nightly',
+ softwareVersion: 'pytorch-VERSION',
},
accelerator: tpus.v3_8,