We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0be46fd commit 03ec7c2Copy full SHA for 03ec7c2
examples/notebooks/MNIST_on_TPU.ipynb
@@ -67,9 +67,9 @@
67
"id": "4mnaxX3eXNGd"
68
},
69
"source": [
70
- "VERSION = \"1.5\"\n",
71
- "!curl https://raw.githubusercontent.com/pytorch/xla/master/contrib/scripts/env-setup.py -o pytorch-xla-env-setup.py\n",
72
- "!python pytorch-xla-env-setup.py --version $VERSION"
+ "VERSION = !curl -s https://api.github.com/repos/pytorch/xla/releases/latest | grep -Po '\"tag_name\": \"v\\K.*?(?=\")'\n",
+ "VERSION = VERSION[0].rstrip('.0') # remove trailing zero\n",
+ "!pip install cloud-tpu-client==0.10 https://storage.googleapis.com/tpu-pytorch/wheels/torch_xla-{VERSION}-cp37-cp37m-linux_x86_64.whl"
73
],
74
"execution_count": null,
75
"outputs": []
@@ -395,4 +395,4 @@
395
396
}
397
]
398
-}
+}
0 commit comments