libtorch是pytorch的C库常用于pytorch模型的C部署。1、cuda安装参考windows/linux安装NVIDIA驱动cuda加速-CSDN博客https://blog.csdn.net/m0_69115733/article/details/159944127?spm1001.2014.3001.55022、libtorch下载libtoch是在pytorch官网下载https://pytorch.org/https://pytorch.org/安装cuda版的libtorch时注意cuda版本和自己电脑匹配