How to set max plugin limit for model with custom layers?


When I use TensorRT to convert model with over 100 custom layers, the registerCreator() API gives error:
Cannot register creator - Max plugin limit reached. Current limit is 100.

Is there any way to explicitly set the maximum plugin limit?


TensorRT Version:
GPU Type: GeForce GTX 1080
Nvidia Driver Version:
CUDA Version: 10.2
CUDNN Version:
Operating System + Version: Ubuntu 18.04.4 LTS

Hi, Request you to check the below reference links for custom plugin implementation.



I have read the " Estimating Depth with ONNX" blog before, and the problem is this method must re-compile the TRT-related libraries, which is not what we expected.

For this “Plugin limit” issue, I think it’s not related with how to implement custom plugins, but something about how to set the parameter of “maximum plugin limit”. What I’m concerned about is whether I could set this parameter so that I can use more than 100 custom plugins in one model, or this parameter is already fixed and cannot be changed(which means that I could only use <=100 custom plugins in one model).


Hi @TUMSchieben,

Maximum plugin limit is not user visible parameter. You cannot specify it explicitly.

Thank you.