Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TensorRT problem #40

Closed
hahakid opened this issue Jun 22, 2018 · 2 comments
Closed

TensorRT problem #40

hahakid opened this issue Jun 22, 2018 · 2 comments

Comments

@hahakid
Copy link

hahakid commented Jun 22, 2018

Installed the tensorrt(3.0 for cuda9.0 and cudnn7.0.5) followed the introduction from the official doc, add the path to ~/.bashrc.
both the python and conda python can import tenosrrt correctly.
However, when I try the example 'python test.py --name label2city_1024p --netG local --ngf 32 --resize_or_crop none '

ERROR: failed to import module (cannot import name onnxparser)
Please make sure you have the TensorRT Library installed
and accessible in your LD_LIBRARY_PATH

How should I add the path to in conda?
Or any other soluations?

@kenin815
Copy link

You need to upgrade your tensorrt to 4.0 , because only tensorrt 4.0 support onnxparser.

@mykeehu
Copy link

mykeehu commented Sep 11, 2022

I haven same problem, TensorRT-8.4.3.1.Windows10.x86_64.cuda-11.6.cudnn8.4 installed with graphsurgeon, uff and onnx_graphsurgeon modules.
Any solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants