(I’m using TensorRT 7 on Windows)
I want to add a plugin from the TensorRT library to my network using the C++ API.
The rest of my network is parsed from an ONNX file.
In previous versions of TensorRT, I would call initLibNvInferPlugins(),
parse my ONNX file, create the plugin (for the sake of example, let’s say it was the nmsPlugin, I would call createNmsPlugin())
and add it to my network using network->addPluginV2().
In TensorRT 7, I must use an explicit batch when parsing from an ONNX file (ok).
But now when I add the plugin to my network, the logger tells me
“PluginV2Layer must be V2Ext or V2IOExt or V2DynamicExt when there is no implicit batch dimension.”
createNmsPlugin() returns a pointer to IPluginV2, but I can see from the source code that it is derived from IPluginV2Ext.
Is there way I can add this plugin using the C++ API?