Error when I'm trying to use torch-tensorrt
❓ Question
Hi I'm trying to use torch-tensorrt with the pre built ngc container
I built it with 22.04 branch and with 22.04 version of ngc My versions are: cuda 10.2 torchvision 0.13.1 torch 1.12.1
But I get that error:
Traceback (most recent call last):
File "main.py", line 31, in
Thank's!!
How is your WORKSPACE configured? If you are using PyTorch 1.12.1 not sure 22.04 is the right branch to use.
My torch version is: 1.12.1, So what the right branch for me?
Thank's!!
Hi,
Please refer the PyTorch release page for NGC here: https://docs.nvidia.com/deeplearning/frameworks/pytorch-release-notes/index.html
I am also curious as the error logs shows: /usr/local/lib/python3.8/dist-packages/torch_tensorrt/lib/libtorchtrt.so
Inside the NGC container the path for torch_tensorrt package is at: /opt/conda/... as mentioned here:
https://github.com/pytorch/TensorRT/blob/master/docker/WORKSPACE.ngc#L36
Are you sure you are running inside the container OR are you using any virtual env inside the container?