#include <NvInferRuntimePlugin.h>
◆ IPluginCreator()
nvinfer1::v_1_0::IPluginCreator::IPluginCreator |
( |
| ) |
|
|
default |
◆ ~IPluginCreator()
nvinfer1::v_1_0::IPluginCreator::~IPluginCreator |
( |
| ) |
|
|
overridedefault |
◆ createPlugin()
Return a plugin object. Return nullptr in case of error.
- Parameters
-
name | A NULL-terminated name string of length 1024 or less, including the NULL terminator. |
fc | A pointer to a collection of fields needed for constructing the plugin. |
Usage considerations
- Allowed context for the API call
- Thread-safe: Yes, this method is required to be thread-safe and may be called from multiple threads when building networks on multiple devices sharing the same plugin or when deserializing multiple engines concurrently sharing plugins.
◆ deserializePlugin()
virtual IPluginV2 * nvinfer1::v_1_0::IPluginCreator::deserializePlugin |
( |
AsciiChar const * |
name, |
|
|
void const * |
serialData, |
|
|
size_t |
serialLength |
|
) |
| |
|
pure virtualnoexcept |
Called during deserialization of plugin layer. Return a plugin object.
- Parameters
-
name | A NULL-terminated name string of length 1024 or less, including the NULL terminator. |
serialData | The start address of a byte array with the serialized plugin representation. |
serialLength | The length in bytes of the byte array with the serialized plugin representation. |
- Returns
- A deserialized plugin object
Usage considerations
- Allowed context for the API call
- Thread-safe: Yes, this method is required to be thread-safe and may be called from multiple threads when building networks on multiple devices sharing the same plugin or when deserializing multiple engines concurrently sharing plugins.
◆ getFieldNames()
Return a list of fields that need to be passed to createPlugin.
- See also
- PluginFieldCollection
Usage considerations
- Allowed context for the API call
- Thread-safe: Yes, this method is required to be thread-safe and may be called from multiple threads when building networks on multiple devices sharing the same plugin or when deserializing multiple engines concurrently sharing plugins.
◆ getInterfaceInfo()
InterfaceInfo nvinfer1::v_1_0::IPluginCreator::getInterfaceInfo |
( |
| ) |
const |
|
inlineoverridevirtualnoexcept |
◆ getPluginName()
virtual AsciiChar const * nvinfer1::v_1_0::IPluginCreator::getPluginName |
( |
| ) |
const |
|
pure virtualnoexcept |
Return the plugin name.
- Warning
- The string returned must be NULL-terminated and have a length of 1024 bytes or less including the NULL terminator.
Usage considerations
- Allowed context for the API call
- Thread-safe: Yes, this method is required to be thread-safe and may be called from multiple threads when building networks on multiple devices sharing the same plugin or when deserializing multiple engines concurrently sharing plugins.
◆ getPluginNamespace()
virtual AsciiChar const * nvinfer1::v_1_0::IPluginCreator::getPluginNamespace |
( |
| ) |
const |
|
pure virtualnoexcept |
Return the namespace of the plugin creator object.
- Warning
- The string returned must be NULL-terminated and have a length of 1024 bytes or less including the NULL terminator.
Usage considerations
- Allowed context for the API call
- Thread-safe: Yes, this method is required to be thread-safe and may be called from multiple threads when building networks on multiple devices sharing the same plugin or when deserializing multiple engines concurrently sharing plugins.
◆ getPluginVersion()
virtual AsciiChar const * nvinfer1::v_1_0::IPluginCreator::getPluginVersion |
( |
| ) |
const |
|
pure virtualnoexcept |
Return the plugin version.
- Warning
- The string returned must be NULL-terminated and have a length of 1024 bytes or less including the NULL terminator.
Usage considerations
- Allowed context for the API call
- Thread-safe: Yes, this method is required to be thread-safe and may be called from multiple threads when building networks on multiple devices sharing the same plugin or when deserializing multiple engines concurrently sharing plugins.
◆ setPluginNamespace()
virtual void nvinfer1::v_1_0::IPluginCreator::setPluginNamespace |
( |
AsciiChar const * |
pluginNamespace | ) |
|
|
pure virtualnoexcept |
Set the namespace of the plugin creator based on the plugin library it belongs to. This can be set while registering the plugin creator.
- Parameters
-
pluginNamespace | A NULL-terminated namespace string of length 1024 or less, including the NULL terminator |
- See also
- IPluginRegistry::registerCreator()
Usage considerations
- Allowed context for the API call
- Thread-safe: Yes, this method is required to be thread-safe and may be called from multiple threads when building networks on multiple devices sharing the same plugin or when deserializing multiple engines concurrently sharing plugins.
The documentation for this class was generated from the following file: