About onnx 2 tensortRT, how to use Plugin????

I just see createNvOnnxParserPluginFactory in #include “NvOnnxParserRuntime.h”.how to add layer such as slice in pytorch operation using Plugin.There may be no example about this…