I tried to execute an onnx model of YOLO by the following command:
However, I faced with error:
No converter registered for op type: LeakyRelu
I found this topic https://devtalk.nvidia.com/default/topic/1039225/tensorrt/tensorrt-no-conversion-function-registered-for-layer-neg-yet-/ which mention that there is LReLu plugin.
Here I found that I have to call initLibNvInferPlugins to use these plugins. However when I added this line into trtexec.cpp I got the error:
'initLibNvInferPlugins' was not declared in this scope initLibNvInferPlugins(&gLogger, "");
Despite of I have added the
#include “NvInferPlugin.h” and using namespace plugin;
How can I solve this issue? Is there any example how to use these plugins?
Environment: TensorRT Docker 18.08 (https://docs.nvidia.com/deeplearning/sdk/tensorrt-container-release-notes/rel_18.08.html#rel_18.08)