How do I install PyTorch v1.0.0+ on Google Colab?
PyTorch v1.0.0 stable was released on 8 December 2018 after being announced 7 months earlier.

I want get a version optimised for the hardware that my IPython kernel is running on.

How do I get this version on Google Colab?

try the following code snippet (it works equally for the runtime with or without gpu)

!pip install -q torch==1.0.0 torchvision


to check the version

import torch
print(torch.__version__)


here you have the version 1.0.0

UPDATE

!pip install torch


Works fine now, as the most stable version is 1.0.0
