Description
Bug Description
Hello, I was trying to install and import Torch-TensorRT in a colab notebook, but after following all the steps when I import torch_tensorrt I get the following error:
ImportError: libnvinfer_plugin.so.8: cannot open shared object file: No such file or directory
In some other issues was suggested to import tensorrt before importing torch_tensorrt, but even in this case I get an error:
ImportError: /usr/local/lib/python3.7/dist-packages/torch_tensorrt/_C.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNSt18basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev
How can I solve this? I also tried on an aws machine and got the same issue.
I can share the notebook where the issue can be easily reproduced: https://colab.research.google.com/drive/1tHRq8Sbe-kE-UoQ4mNlI_IEyDAOoW2sK?usp=sharing
To Reproduce
Steps to reproduce the behavior:
- Start a colab environment with gpu
- Install pytorch 1.11: pip install torch==1.11.0+cu113 torchvision==0.12.0+cu113 torchaudio==0.11.0 --extra-index-url https://download.pytorch.org/whl/cu113
- Install tensorrt: pip install --upgrade nvidia-tensorrt
- Install pytorch-tensorrt: pip install torch-tensorrt -f https://github.com/pytorch/TensorRT/releases
Environment
- Torch-TensorRT Version: 1.1.0
- PyTorch Version: 1.11
- How you installed PyTorch: pip
- Python version: 3.7
- CUDA version: 11.2
- GPU models and configuration: Tesla P100