Skip to content

Commit 60e2af4

Browse files
authored
[skip ci] fix version extraction (#2331)
1 parent 94354d0 commit 60e2af4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: examples/notebooks/MNIST_on_TPU.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
},
6969
"source": [
7070
"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",
71+
"VERSION = VERSION[0].rstrip('0').rstrip('.') # remove trailing zero\n",
7272
"!pip install cloud-tpu-client==0.10 https://storage.googleapis.com/tpu-pytorch/wheels/torch_xla-{VERSION}-cp37-cp37m-linux_x86_64.whl"
7373
],
7474
"execution_count": null,

0 commit comments

Comments
 (0)