Comments (8)
- For you first problem, the inputs you used to build engine should be the same as the inputs of your frozen models. I found that you used
(x1: 10, x2: 3)
as the inputs of the frozen models, but[1, 768]
as the inputs to build engine. They are not matched such thatCreating input desc is failed
. - The problem about
invalid pointer
might be related to conflicts with TensorRT libraries on BERT-related plugins registry. We'll try to reproduce it to figure out.
from forward.
Thanks for answering~
- For the first problem, I check the input and solved the input problem. But another problem (已放弃(吐核)) can not solve, I load the pb model to build the engine and the problem appeared.
from forward.
@favorxin Did you try to pull the latest master branch to rebuild? Because we had fixed a Plugin Registry problem based on your previous 'unit_test' screenshot, you could pull the latest master branch and rebuild it again.
from forward.
Sorry for replaying later. I tried again yesterday and pulled the latest master branch. I have a question that the tensorflow==1.15.0 is tensorflow-gpu? But my cuda=11.0, it too higher for tensorflow=1.15.0. It got libcudnn.so.7 not found and core dumped wrong again.
from forward.
@favorxin Maybe you could try to config your ENV variable. Some references are below:
export PATH=/usr/local/cuda/bin:$PATH
export LD_LIBRARY_PATH=/usr/lib/:/usr/lib64/:/usr/local/cuda/lib64/:/usr/local/nvidia/lib64:/usr/local/cuda/extras/CUPTI/lib64/:$LD_LIBRARY_PATH
export LIBRARY_PATH=/usr/lib:/usr/lib64/:/usr/local/cuda/lib64/:$LIBRARY_PATH
export CPLUS_INCLUDE_PATH=/usr/local/cuda/include/:$CPLUS_INCLUDE_PATH
from forward.
Here is my keras model.
densenet_num18_all_model.zip
My cmake code is as following:
cmake .. -DTensorRT_ROOT=/data/software/tensorRT/TensorRT-7.0.0.11 \ -DENABLE_LOGGING=OFF \ -DENABLE _PROFILING=OFF \ -DENABLE_DYNAMIC_BATCH=ON \ -DBUILD_PYTHON_LIB=ON \ -DPYTHON_EXECUTABLE=/data/anaconda3/bin/python \ -DENABLE_TORCH=OFF \ -DENABLE_TENSORFLOW=OFF \ -DENABLE_KERAS=ON \ -DCMAKE_PREFIX_PATH=/data/software/hdf5-1.12.0
And this log is cmake log.
The make -j is successfully.
Environment
TensorRT Version: 7.0.0.6
NVIDIA GPU: K40S
NVIDIA Driver Version: 450.80.02
CUDA Version: 10.0
CUDNN Version: 7.6.5
Operating System: 7.5
Python Version (if applicable): 3.6.13
Tensorflow Version (if applicable): tensorflow==1.15.0(cpu)
PyTorch Version (if applicable): 1.7.1
from forward.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
from forward.
This issue was closed because it has been stalled for 5 days with no activity.
from forward.
Related Issues (20)
- 使用这个Forward框架进行推断的时候会有精度损失吗? HOT 6
- 关于fwd-torch的几个路径的问题 HOT 2
- Segmentation fault (core dumped) when transfer keras model to trt. HOT 4
- Help to support tensorflow slim "Flatten" pattern to Tensorrt. HOT 10
- 编译VC项目时出错 HOT 14
- vs2017怎么跑demo? HOT 8
- Is have docker with all dependencies? HOT 3
- Will forward framework support paddlepaddle in the future? HOT 4
- win_python_keras版本加载模型时报错 HOT 4
- 编译出错 找不到cublas_device库 HOT 7
- keras.layer里Embedding的trt实现 HOT 8
- Keras中Flatten层的支持 HOT 2
- 对‘fwd::TrtForwardEngine::Load(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)’未定义的引用 HOT 9
- 是否考虑重新写一个模型序列化?? HOT 3
- 与trtorch等项目的优劣对比 HOT 3
- make报错 HOT 22
- reflectPad存在两个问题 HOT 9
- 编译fwd-pytroch时提示缺少头文件 HOT 1
- 优化模型时报错 HOT 2
- [TRT] (Unnamed Layer* 0) [Convolution]: at least 4 dimensions are required for input HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from forward.