-
Notifications
You must be signed in to change notification settings - Fork 34
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
c++ inference #4
Comments
Hi, |
@grimoire Wonna consult another question. For those model doesn't need plugin at all, such as resnet50 which is totally normal model, is that possible to generate engine without the plugins? I mean, for users to use, I want the engine attach plugins only if they really need one, for those normal model, users can directly using normal tensorrt lib to inference. |
Errr...Actually, tensorrt did not have GAP implementation. That's why resnet need plugins. You can use normal average pooling(if you don't need dynamic shape) or reduce instead of GAP. read init.py, here is the layers that need plugins, avoid use them if you don't want to use plugins.
|
@grimoire Did u mean, if the model doesn't have a plugin, torch2trt will not generate engine with plugin? AFAIK, using onnx2trt convert resnet doesn't invoke any plugin in it's engine. |
In this issue:
IReduceLayer can do reduce along given dims, That's why onnx -> tensorrt doesn't need plugins. But this repo also need to support mmdetection-to-tensorrt, Which need AdaptivePooling to do downsample(poolsize != 1), IReduceLayer can not help me with this task. |
@grimoire I am not specific for resnet here, just take it as example. I want to know, it's that possible to build an engine with this tool without engine invoke plugins if this model doesn't need one (take vgg as example). |
If the model does not use the layers I mentioned above, the anwser is yes. |
Hi, I have converted engine file, when I try inference the genereated trt engine file, there was an error:
Do u know what's the best way to found these plugins? I do have your amir plugins installed, but I don't know how to use it in c++, simply link it?
The text was updated successfully, but these errors were encountered: