I Create an custom op realization by TensorRT plugin API. And In the TF model I have more than one custom op with same op name. Parsing uff to nvinfer1::INetworkDefinition is worked right. But use the network to build a nvinfer1::ICudaEngine will be wrong , outputing the message “Repeated layer name xxx, layers must have distinct names”.
I take a look into the uff file , and figure out the custom ops are written the same op name with difference in layer names.But in virtual function createPlugin from IPluginFactory, the param “layerName” passed by the API is actually the op name not the layer name. And there is no API to set the plugin a new layer name or such like this. How should I do to create some custom ops with same op name but different layer names?