Skip to content
Snippets Groups Projects
Commit 20f63a00 authored by Andri Joos's avatar Andri Joos :blush:
Browse files

Update README.md

parent aa94166f
Branches master
No related tags found
No related merge requests found
......@@ -97,15 +97,16 @@ To see which tensorrt version is needed run
strace -e open,openat python -c "import tensorflow as tf" 2>&1 | grep "libnvinfer\|TF-TRT"
```
Now, [tensorrt](https://docs.nvidia.com/deeplearning/tensorrt/) is installed (installation may fail, but as long as the libnvinver.so.\* and libnvinver_plugin.so.\* are present, that's no big deal)
Now, [tensorrt](https://docs.nvidia.com/deeplearning/tensorrt/) is installed (installation might fail, but as long as the libnvinver.so.\* and libnvinver_plugin.so.\* are present, that's no big deal)
```sh
pip install tensorrt==x.y.z
pip install --no-cache tensorrt==x.y.z
```
Unfortunately, tensorrt does not link the shared libraries, so we need to do
```sh
ln -s /home/andri/Projects/tf_agents_tutorial/venv/lib/python3.12/site-packages/tensorrt/libnvinfer.so.8 /home/andri/Projects/tf_agents_tutorial/venv/lib/python3.12/site-packages/tensorrt/libnvinfer.so.8.6.1
ln -s /home/andri/Projects/tf_agents_tutorial/venv/lib/python3.12/site-packages/tensorrt/libnvinfer_plugin.so.8 /home/andri/Projects/tf_agents_tutorial/venv/lib/python3.12/site-packages/tensorrt/libnvinfer_plugin.so.8.6.1
tensorrt_dir=$(pwd)/venv/lib/python$(python -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')")/site-packages/tensorrt_libs
ln -s $tensorrt_dir/libnvinfer.so.8 $tensorrt_dir/libnvinfer.so.8.6.1
ln -s $tensorrt_dir/libnvinfer_plugin.so.8 $tensorrt_dir/libnvinfer_plugin.so.8.6.1
```
Be aware, that your paths and versions may differ from the given paths.
Your paths can be found via
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment