Skip to content

Commit

Permalink
[skip ci] fix version extraction (pytorch#2331)
Browse files Browse the repository at this point in the history
  • Loading branch information
Priyansi authored and Ishan-Kumar2 committed Dec 26, 2021
1 parent 9cbe727 commit 8c1f726
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/notebooks/MNIST_on_TPU.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
},
"source": [
"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",
"VERSION = VERSION[0].rstrip('0').rstrip('.') # 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"
],
"execution_count": null,
Expand Down

0 comments on commit 8c1f726

Please sign in to comment.