-
Notifications
You must be signed in to change notification settings - Fork 681
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
install with plugins #315
Comments
Hi liguoyu666, Thanks for reaching out! Can you try the branch in this pull request? This has refactored the plugins, and the build should be more stable. For this, plugins are enabled by default (no need to pass Please let me know if this works for you. Best, |
Thank you , but there is another problem: (base) lgy@lgy: |
@jaybdub running build_ext |
@shaominghe @liguoyu666 Were you able to figure out this issue? |
I've given up the method, and I change the model to onnx and then tensorrt. |
I solved it; I modified it to look like this def trt_inc_dir():
return "/usr/local/TensorRT/include"
def trt_lib_dir():
return "/usr/local/TensorRT/lib" |
It worked well without plugins, but when I installed with plugins, It reported an error:
python setup.py install --plugins running install Building in plugin support [2/3] g++ -c -fPIC torch2trt/converters/inte... -std=c++11 -I/usr/include/aarch64-linux-gnu FAILED: g++ -c -fPIC torch2trt/converters/interpolate/interpolate.pb.cc -I/usr/local/cuda/include -I/home/lgy/anaconda3/lib/python3.7/site-packages/torch/include -I/home/lgy/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I. -std=c++11 -I/usr/include/aarch64-linux-gnu In file included from torch2trt/converters/interpolate/interpolate.pb.cc:4:0: ./torch2trt/converters/interpolate/interpolate.pb.h:10:40: fatal error: google/protobuf/port_def.inc: 没有那个文件或目录 compilation terminated. [2/3] g++ -c -fPIC torch2trt/converters/inte... -std=c++11 -I/usr/include/aarch64-linux-gnu FAILED: g++ -c -fPIC torch2trt/converters/interpolate/interpolate.cpp -I/usr/local/cuda/include -I/home/lgy/anaconda3/lib/python3.7/site-packages/torch/include -I/home/lgy/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I. -std=c++11 -I/usr/include/aarch64-linux-gnu torch2trt/converters/interpolate/interpolate.cpp:2:21: fatal error: NvInfer.h: 没有那个文件或目录 compilation terminated. ninja: build stopped: subcommand failed. running build running build_py running install_lib running install_egg_info running egg_info writing torch2trt.egg-info/PKG-INFO writing dependency_links to torch2trt.egg-info/dependency_links.txt writing top-level names to torch2trt.egg-info/top_level.txt reading manifest file 'torch2trt.egg-info/SOURCES.txt' writing manifest file 'torch2trt.egg-info/SOURCES.txt' removing '/home/lgy/anaconda3/lib/python3.7/site-packages/torch2trt-0.0.3-py3.7.egg-info' (and everything under it) Copying torch2trt.egg-info to /home/lgy/anaconda3/lib/python3.7/site-packages/torch2trt-0.0.3-py3.7.egg-info running install_scripts
and I installed libprotobuf* protobuf-compiler ninja-build sucessfuly, I updated protoc from 2.x to 3.11.4.
could you hep me?
The text was updated successfully, but these errors were encountered: