tensorrt-installation-colab icon indicating copy to clipboard operation
tensorrt-installation-colab copied to clipboard

problem in importing tensorrt

Open ghost opened this issue 3 years ago • 6 comments

Hi! Thanks for sharing your codes. I'm also using this solution to install tensorrt 7 on Colab but the problem is that I cannot import the TensorRT I searched for it and I got that there must be other packages too I also used almost all methods that have been mentioned in Nvidia but none of them was successful :( I wish I can find a solution to correct this installation or if there is another way available will be very appreciated :)

This is what I saw in Nvidia:

You should see something similar to the following: ii graphsurgeon-tf 7.2.3-1+cuda11.1 amd64 GraphSurgeon for TensorRT package ii libnvinfer-bin 7.2.3-1+cuda11.1 amd64 TensorRT binaries ii libnvinfer-dev 7.2.3-1+cuda11.1 amd64 TensorRT development libraries and headers ii libnvinfer-doc 7.2.3-1+cuda11.1 all TensorRT documentation ii libnvinfer-plugin-dev 7.2.3-1+cuda11.1 amd64 TensorRT plugin libraries ii libnvinfer-plugin7 7.2.3-1+cuda11.1 amd64 TensorRT plugin libraries ii libnvinfer-samples 7.2.3-1+cuda11.1 all TensorRT samples ii libnvinfer7 7.2.3-1+cuda11.1 amd64 TensorRT runtime libraries ii libnvonnxparsers-dev 7.2.3-1+cuda11.1 amd64 TensorRT ONNX libraries ii libnvonnxparsers7 7.2.3-1+cuda11.1 amd64 TensorRT ONNX libraries ii libnvparsers-dev 7.2.3-1+cuda11.1 amd64 TensorRT parsers libraries ii libnvparsers7 7.2.3-1+cuda11.1 amd64 TensorRT parsers libraries ii python-libnvinfer 7.2.3-1+cuda11.1 amd64 Python bindings for TensorRT ii python-libnvinfer-dev 7.2.3-1+cuda11.1 amd64 Python development package for TensorRT ii python3-libnvinfer 7.2.3-1+cuda11.1 amd64 Python 3 bindings for TensorRT ii python3-libnvinfer-dev 7.2.3-1+cuda11.1 amd64 Python 3 development package for TensorRT ii tensorrt 7.2.3.x-1+cuda11.1 amd64 Meta package of TensorRT ii uff-converter-tf 7.2.3-1+cuda11.1 amd64 UFF converter for TensorRT package ii onnx-graphsurgeon 7.2.3-1+cuda11.1 amd64 ONNX GraphSurgeon for TensorRT package

And This is what I see after my installation:

ii libnvinfer-bin 7.0.0-1+cuda10.0 amd64 TensorRT binaries hi libnvinfer-dev 7.0.0-1+cuda10.0 amd64 TensorRT development libraries and headers ii libnvinfer-doc 7.0.0-1+cuda10.0 all TensorRT documentation hi libnvinfer-plugin-dev 7.0.0-1+cuda10.0 amd64 TensorRT plugin libraries hi libnvinfer-plugin7 7.0.0-1+cuda10.0 amd64 TensorRT plugin libraries ii libnvinfer-samples 7.0.0-1+cuda10.0 all TensorRT samples hi libnvinfer7 7.0.0-1+cuda10.0 amd64 TensorRT runtime libraries hi libnvonnxparsers-dev 7.0.0-1+cuda10.0 amd64 TensorRT ONNX libraries hi libnvonnxparsers7 7.0.0-1+cuda10.0 amd64 TensorRT ONNX libraries hi libnvparsers-dev 7.0.0-1+cuda10.0 amd64 TensorRT parsers libraries hi libnvparsers7 7.0.0-1+cuda10.0 amd64 TensorRT parsers libraries hi python-libnvinfer 7.0.0-1+cuda10.0 amd64 Python bindings for TensorRT hi python3-libnvinfer 7.0.0-1+cuda10.0 amd64 Python 3 bindings for TensorRT ii tensorrt 7.0.0.11-1+cuda10.0 amd64 Meta package of TensorRT

ghost avatar Apr 18 '21 07:04 ghost

Hi @prratadiya Great work but

import tensorrt is not working

Please help

codebugged avatar Jun 10 '21 19:06 codebugged

Hi @prratadiya Great work but

import tensorrt is not working

Please help

Hello @codebugged. Did you get it working? Getting same error in google colab...

rafaelbate avatar Jun 18 '21 11:06 rafaelbate

@prratadiya - Import tensorrt is not working. I tried it in colab using .deb file and via tensor.contrib too. If you get it working, kindly let us know. Thank you in advance.

periraviteja avatar Jul 29 '21 08:07 periraviteja

Has anyone gotten Import tensorrt to work yet? Thanks!

afisk avatar Sep 02 '21 20:09 afisk

Hello, same problem cannot import tensorRT...

AlexandreBourrieau avatar Sep 27 '21 12:09 AlexandreBourrieau

Was there a solution to import tensorRT?

RolandSall avatar Feb 13 '22 10:02 RolandSall