使用libtorch调用c++接口,要保证下载的libtorch的版本和pytorch的版本对应
至少使用低版本的pytorch和高版本的libtorch是没法成功的。反过来是可以的:即高版本的pytorch和低版本的libtorch。
官网上目前最新的是1.5版本
各个版本的libtorch下载参考https://blog.csdn.net/qq_37569355/article/details/104246813
使用libtorch调用c++接口,要保证下载的libtorch的版本和pytorch的版本对应
至少使用低版本的pytorch和高版本的libtorch是没法成功的。反过来是可以的:即高版本的pytorch和低版本的libtorch。
官网上目前最新的是1.5版本
各个版本的libtorch下载参考https://blog.csdn.net/qq_37569355/article/details/104246813