使用过程中报找不到tensorrt库的日志怎么办?
收藏
TensorRT dynamic library (libnvinfer.so) that Paddle depends on is not configured correctly. (error code is libnvinfer.so: cannot open shared object file: No such file or directory)
Suggestions:
Check if TensorRT is installed correctly and its version is matched with paddlepaddle you installed.
Configure TensorRT dynamic library environment variables as follows:
Linux: set LD_LIBRARY_PATH by export LD_LIBRARY_PATH=...
Windows: set PATH by `set PATH=XXX;
遇到该问题是因为使用的paddle默认开始了TensorRT,但是本地环境中没有找到TensorRT的库,该问题只影响使用Paddle Inference开启TensorRT预测的场景,对其它方面均不造成影响。
0
收藏
请登录后评论
如果遇到上述问题,可以根据提示信息,在环境变量中加入TensorRT的库路径就可以了。