IPluginRegistry¶
-
class
tensorrt.
IPluginRegistry
¶ Registers plugin creators.
Variables: plugin_creator_list – All the registered plugin creators. -
get_plugin_creator
(self: tensorrt.tensorrt.IPluginRegistry, type: str, version: str) → tensorrt.tensorrt.IPluginCreator¶ Return plugin creator based on type and version
Parameters: - type – The type of the plugin.
- version – The version of the plugin.
Returns: An
IPluginCreator
.
-
register_creator
(self: tensorrt.tensorrt.IPluginRegistry, creator: tensorrt.tensorrt.IPluginCreator) → bool¶ Register a plugin creator.
Returns: False if one with the same type is already registered.
-
-
tensorrt.
get_plugin_registry
() → tensorrt.tensorrt.IPluginRegistry¶ Return the plugin registry
-
tensorrt.
register_all_tensorrt_plugins
() → None¶ Register all the existing TensorRT plugins to the Plugin Registry. This function should be called before accessing the Plugin Registry.