No importer registered for Custom Plugin

I’m using this repo. However tensorrt is not able to either register or find the registered plugin. I get :

ERROR: ModelImporter.cpp:134 In function parseGraph:
[8] No importer registered for op: MishPlugin
Parameter check failed at: ../builder/Network.cpp::addConcatenation::457, condition: nbInputs > 0 && nbInputs < MAX_CONCAT_INPUTS 

Plugin implementations are under /lib

Environment

TensorRT Version: 7.0.0.11
GPU Type: RTX 2070 Mobile
Nvidia Driver Version:
**CUDA Version:10
**CUDNN Version: 7.6.5
**Operating System + Version: Ubuntu 18.04

Hi,
Please refer to below links related custom plugin implementation and sample:

Thanks!

I checked the links but no help from them.

  nvinfer1::IPluginCreator* const* tmpList = getPluginRegistry()->getPluginCreatorList(&numCreators);
  for (int k = 0; k < numCreators; ++k)
  {
      if (!tmpList[k])
      {
          std::cout << "Plugin Creator for plugin " << k << " is a nullptr." << std::endl;
          continue;
      }
      std::string pluginName = tmpList[k]->getPluginName();
      std::cout << k << ": " << pluginName << std::endl;
  }

By doing as above i can see that my plugins are in TRT Registry. But still i get the same error even though the op name is the same as implemented plugin.

Hi @orcdnz,

We recommend you to please try latest TensorRT version. If you still face this issue, please share us complete script for better debugging.

Thank you.

TRT 7.2.1.6 solved the problem. Thanks

1 Like