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 94354d0 commit 60e2af4Copy full SHA for 60e2af4
examples/notebooks/MNIST_on_TPU.ipynb
@@ -68,7 +68,7 @@
68
},
69
"source": [
70
"VERSION = !curl -s https://api.github.com/repos/pytorch/xla/releases/latest | grep -Po '\"tag_name\": \"v\\K.*?(?=\")'\n",
71
- "VERSION = VERSION[0].rstrip('.0') # remove trailing zero\n",
+ "VERSION = VERSION[0].rstrip('0').rstrip('.') # remove trailing zero\n",
72
"!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,
0 commit comments