当前位置: 首页 > 后端技术 > Python

如何快速安装tensorRT

时间:2023-03-26 00:59:40 Python

国内镜像https://mirrors.cloud.tencent...查看系统版本source/etc/os-release&&echo$VERSION_ID导入apt仓库及其GPG密钥#第一步如果输出为18.04,请使用以下命令curl-fsSLhttps://mirrors.cloud.tencent.com/nvidia-machine-learning/ubuntu1804/x86_64/7fa2af80.pub|apt-keyadd-echo"debhttps://mirrors.cloud.tencent.com/nvidia-machine-learning/ubuntu1804/x86_64//">/etc/apt/sources.list.d/cuda.list安装需要的tensorRT版本这次参考TensorFlow官方文档https://www.tensorflow.org/in...#这里以7.1.3版本为例apt-getinstall-y--no-install-recommendslibnvinfer7=7.1.3-1+cuda11.0\libnvinfer-dev=7.1.3-1+cuda11.0\libnvinfer-plugin7=7.1.3-1+cuda11.0