TensorRT  7.2.1.6
NVIDIA TensorRT
Looking for a C++ dev who knows TensorRT?
I'm looking for work. Hire me!
nvinfer1::IPluginRegistry Class Referenceabstract

Single registration point for all plugins in an application. It is used to find plugin implementations during engine deserialization. Internally, the plugin registry is considered to be a singleton so all plugins in an application are part of the same global registry. Note that the plugin registry is only supported for plugins of type IPluginV2 and should also have a corresponding IPluginCreator implementation. More...

Public Member Functions

virtual bool registerCreator (IPluginCreator &creator, const char *pluginNamespace) noexcept=0
 Register a plugin creator. More...
 
virtual IPluginCreator *const * getPluginCreatorList (int32_t *numCreators) const noexcept=0
 Return all the registered plugin creators and the number of registered plugin creators. More...
 
virtual IPluginCreatorgetPluginCreator (const char *pluginType, const char *pluginVersion, const char *pluginNamespace="") noexcept=0
 Return plugin creator based on plugin type, version and namespace associated with plugin during network creation. More...
 
virtual void setErrorRecorder (IErrorRecorder *recorder) noexcept=0
 Set the ErrorRecorder for this interface. More...
 
virtual IErrorRecordergetErrorRecorder () const noexcept=0
 set the ErrorRecorder assigned to this interface. More...
 

Protected Member Functions

virtual ~IPluginRegistry () noexcept
 

Detailed Description

Single registration point for all plugins in an application. It is used to find plugin implementations during engine deserialization. Internally, the plugin registry is considered to be a singleton so all plugins in an application are part of the same global registry. Note that the plugin registry is only supported for plugins of type IPluginV2 and should also have a corresponding IPluginCreator implementation.

See also
IPluginV2 and IPluginCreator
Warning
Do not inherit from this class, as doing so will break forward-compatibility of the API and ABI.

Constructor & Destructor Documentation

◆ ~IPluginRegistry()

virtual nvinfer1::IPluginRegistry::~IPluginRegistry ( )
inlineprotectedvirtualnoexcept

Member Function Documentation

◆ registerCreator()

virtual bool nvinfer1::IPluginRegistry::registerCreator ( IPluginCreator creator,
const char *  pluginNamespace 
)
pure virtualnoexcept

Register a plugin creator.

Returns false if one with same type is already registered.

Here is the caller graph for this function:

◆ getPluginCreatorList()

virtual IPluginCreator* const* nvinfer1::IPluginRegistry::getPluginCreatorList ( int32_t *  numCreators) const
pure virtualnoexcept

Return all the registered plugin creators and the number of registered plugin creators.

Returns nullptr if none found.

Here is the caller graph for this function:

◆ getPluginCreator()

virtual IPluginCreator* nvinfer1::IPluginRegistry::getPluginCreator ( const char *  pluginType,
const char *  pluginVersion,
const char *  pluginNamespace = "" 
)
pure virtualnoexcept

Return plugin creator based on plugin type, version and namespace associated with plugin during network creation.

◆ setErrorRecorder()

virtual void nvinfer1::IPluginRegistry::setErrorRecorder ( IErrorRecorder recorder)
pure virtualnoexcept

Set the ErrorRecorder for this interface.

Assigns the ErrorRecorder to this interface. The ErrorRecorder will track all errors during execution. This function will call incRefCount of the registered ErrorRecorder at least once. Setting recorder to nullptr unregisters the recorder with the interface, resulting in a call to decRefCount if a recorder has been registered.

Parameters
recorderThe error recorder to register with this interface.
See also
getErrorRecorder

◆ getErrorRecorder()

virtual IErrorRecorder* nvinfer1::IPluginRegistry::getErrorRecorder ( ) const
pure virtualnoexcept

set the ErrorRecorder assigned to this interface.

Retrieves the assigned error recorder object for the given class. A default error recorder does not exist, so a nullptr will be returned if setErrorRecorder has not been called, or an ErrorRecorder has not been inherited.

Returns
A pointer to the IErrorRecorder object that has been registered.
See also
setErrorRecorder

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