◆ isPlugin()
bool PluginFactory::isPlugin |
( |
const char * |
layerName | ) |
|
|
inlineoverridevirtual |
A user implemented function that determines if a layer configuration is provided by an IPlugin.
- Parameters
-
layerName | Name of the layer which the user wishes to validate. |
Implements nvcaffeparser1::IPluginFactory.
◆ isPluginExt()
bool PluginFactory::isPluginExt |
( |
const char * |
layerName | ) |
|
|
inlineoverridevirtual |
A user implemented function that determines if a layer configuration is provided by an IPluginExt.
- Parameters
-
layerName | Name of the layer which the user wishes to validate. |
Implements nvcaffeparser1::IPluginFactoryExt.
◆ createPlugin() [1/3]
virtual IPlugin* PluginFactory::createPlugin |
( |
const char * |
layerName, |
|
|
const nvinfer1::Weights * |
weights, |
|
|
int |
nbWeights |
|
) |
| |
|
inlineoverridevirtual |
◆ createPlugin() [2/3]
nvinfer1::IPlugin* PluginFactory::createPlugin |
( |
const char * |
layerName, |
|
|
const void * |
serialData, |
|
|
size_t |
serialLength |
|
) |
| |
|
inlineoverridevirtual |
Create a plugin from serialized data.
Responsibility of destroying this plugin lies with the application. It can be done anytime after consumers of this plugin are destroyed.
- Parameters
-
layerName | The name of the layer. |
serialData | The serialized data. |
serialLength | The length of the serialized data. |
- Returns
- The plugin.
- See also
- IPlugin::serialize()
Implements nvinfer1::IPluginFactory.
◆ destroyPlugin()
void PluginFactory::destroyPlugin |
( |
| ) |
|
|
inline |
◆ getVersion()
virtual int32_t nvcaffeparser1::IPluginFactoryExt::getVersion |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ createPlugin() [3/3]
Creates a plugin.
- Parameters
-
layerName | Name of layer associated with the plugin. |
weights | Weights used for the layer. |
nbWeights | Number of weights. |
◆ mPlugin
std::unique_ptr<FCPlugin> PluginFactory::mPlugin {nullptr} |
The documentation for this class was generated from the following file:
- samples/opensource/samplePlugin/fcPlugin.h