TensorRT 8.6.1
nvcaffeparser1::IPluginFactoryV2 Class Referenceabstract

Plugin factory used to configure plugins. More...

#include <NvCaffeParser.h>

Public Member Functions

virtual bool isPluginV2 (char const *layerName) noexcept=0
 A user implemented function that determines if a layer configuration is provided by an IPluginV2. More...
 
virtual nvinfer1::IPluginV2createPlugin (char const *layerName, nvinfer1::Weights const *weights, int32_t nbWeights, char const *libNamespace="") noexcept=0
 Creates a plugin. More...
 
virtual ~IPluginFactoryV2 () noexcept=default
 

Detailed Description

Plugin factory used to configure plugins.

Constructor & Destructor Documentation

◆ ~IPluginFactoryV2()

virtual nvcaffeparser1::IPluginFactoryV2::~IPluginFactoryV2 ( )
virtualdefaultnoexcept

Member Function Documentation

◆ createPlugin()

virtual nvinfer1::IPluginV2 * nvcaffeparser1::IPluginFactoryV2::createPlugin ( char const *  layerName,
nvinfer1::Weights const *  weights,
int32_t  nbWeights,
char const *  libNamespace = "" 
)
pure virtualnoexcept

Creates a plugin.

Parameters
layerNameName of layer associated with the plugin.
weightsWeights used for the layer.
nbWeightsNumber of weights.
libNamespaceLibrary Namespace associated with the plugin object

◆ isPluginV2()

virtual bool nvcaffeparser1::IPluginFactoryV2::isPluginV2 ( char const *  layerName)
pure virtualnoexcept

A user implemented function that determines if a layer configuration is provided by an IPluginV2.

Parameters
layerNameName of the layer which the user wishes to validate.

The documentation for this class was generated from the following file: