IPluginFactory

class tensorrt.IPluginFactory

Plugin factory for deserialization

create_plugin(self: tensorrt.tensorrt.IPluginFactory, layer_name: str, serialized_plugin: buffer) → tensorrt.tensorrt.IPlugin

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:
  • layer_name – The name of the layer.
  • serialized_plugin – The serialized plugin.
Returns:

The plugin.