TensorRT  7.0.0.11
nvinfer1::IPluginFactory Class Referenceabstract

Plugin factory for deserialization. More...

#include <NvInferRuntime.h>

Public Member Functions

virtual IPlugincreatePlugin (const char *layerName, const void *serialData, size_t serialLength)=0
 Create a plugin from serialized data. More...
 

Detailed Description

Plugin factory for deserialization.

This Interface is guaranteed not to change for the same major version of TensorRT.

Member Function Documentation

virtual IPlugin* nvinfer1::IPluginFactory::createPlugin ( const char *  layerName,
const void *  serialData,
size_t  serialLength 
)
pure virtual

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
layerNameThe name of the layer.
serialDataThe serialized data.
serialLengthThe length of the serialized data.
Returns
The plugin.
See also
IPlugin::serialize()

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