How do I install PyTorch v1.0.0+ on Google Colab?

前端 未结 6 1287
广开言路
广开言路 2021-02-14 02:08

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 r

6条回答
  •  既然无缘
    2021-02-14 02:48

    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

提交回复
热议问题