pytorch官网上下载libtorch各个版本的url

下载各种版本libtorch(x86架构官网直接下载,arm架构需要源码编译安装)

下载libtorch1.0(1.0.0和1.0.1)版本(cuda8.0、cuda9.0和cuda10.0 )

Linux version:
cpu版本(Mac仅有cpu版本,和linux的cpu版本链接一样)

https://download.pytorch.org/libtorch/cpu/libtorch-shared-with-deps-1.0.0.zip

cuda版本

https://download.pytorch.org/libtorch/cu80/libtorch-shared-with-deps-1.0.0.zip
https://download.pytorch.org/libtorch/cu90/libtorch-shared-with-deps-1.0.0.zip
`

Windows version:
cpu版本

https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-1.0.0.zip

cuda版本

https://download.pytorch.org/libtorch/cu80/libtorch-win-shared-with-deps-1.0.0.zip
https://download.pytorch.org/libtorch/cu90/libtorch-win-shared-with-deps-1.0.0.zip
https://download.pytorch.org/libtorch/cu100/libtorch-win-shared-with-deps-1.0.0.zip

libtorch1.1.0(cuda9.0和cuda10.0)

https://download.pytorch.org/libtorch/cu90/libtorch-shared-with-deps-1.1.0.zip

libtorch1.2.0(cuda9.2、cuda10.0)

https://download.pytorch.org/libtorch/cu90/libtorch-shared-with-deps-1.2.0.zip

libtorch1.3(1.3.0和1.3.1)

cuda10.0、cuda10.1

libtorch1.4.0

cuda10.1
应该也可以下载cu92,cu100版本,目前未找到下载门路,有知道的小伙伴可以评论里留言

libtorch1.5目前官网最新版本,可直接去Pytorch官网下载

总结

个人实践,发现libtorch对应的cuda版本对于本机的cuda版本是向下兼容的,比如cuda100的libtorch1.1.0可以在cuda9.0的机器上使用,不会报错,但是反过来会报错(cuda90的libtorch在cuda10的机器上去编译运行)。(没有所有版本都去实践,大致情况是如此,不排除个别情况)。另外要注意的是在Linux上,gcc必须要>=4.9.2,否则编译能通过,运行时报free()错。

你可能感兴趣的:(pytorch官网上下载libtorch各个版本的url)