【发布时间】:2020-07-31 01:12:32
【问题描述】:
我想降级我的 Google Colab 笔记本中使用的 Torch 版本。我怎么能这样做?
【问题讨论】:
标签: python pytorch google-colaboratory torch
我想降级我的 Google Colab 笔记本中使用的 Torch 版本。我怎么能这样做?
【问题讨论】:
标签: python pytorch google-colaboratory torch
从你的牢房里跑:
!pip install torch==version
例如,版本可以是1.3.0(默认为1.4.0)。您可能还必须适当地降级 torchvision,以便您使用:
!pip install torch==1.3.0 torchvision==0.4.1
另一方面,PyTorch 提供主要版本之间的向后兼容性,因此不需要降级。
请记住,您必须重新启动 Google Colab 才能使更改生效
【讨论】: