libnvinfer.so, libnvinfer_plugin.so : cannot open shared object file 错误解决
Posted 白马负金羁
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了libnvinfer.so, libnvinfer_plugin.so : cannot open shared object file 错误解决相关的知识,希望对你有一定的参考价值。
在使用GPU加速你的深度学习程序时,你是否遇到过如下警告提示:
Could not load dynamic library \'libnvinfer.so.7\'; dlerror: libnvinfer.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/cuda-11.7/lib64:
Could not load dynamic library \'libnvinfer_plugin.so.7\'; dlerror: libnvinfer_plugin.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/cuda-11.7/lib64:
TF-TRT Warning: Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
当然,这些都是warning信息,并非错误信息。The shared libraries libnvinfer
and libnvinfer_plugin
are optional and required only if you are using nvidia\'s TensorRT capabilities.
什么是Tensor
以上是关于libnvinfer.so, libnvinfer_plugin.so : cannot open shared object file 错误解决的主要内容,如果未能解决你的问题,请参考以下文章
在 ubuntu 18.04 上使用 libnvinfer7 库(Cuda 10.2)安装 TensorRT 面临的问题