TensorRT 10.0.0
nvinfer1::consistency::IPluginChecker Class Referenceabstract

Consistency Checker plugin class for user implemented Plugins. More...

#include <NvInferConsistency.h>

Inheritance diagram for nvinfer1::consistency::IPluginChecker:
nvinfer1::v_1_0::IPluginCreator nvinfer1::v_1_0::IPluginCreatorInterface nvinfer1::IVersionedInterface

Public Member Functions

virtual bool validate (char const *name, void const *serialData, size_t serialLength, PluginTensorDesc const *in, size_t nbInputs, PluginTensorDesc const *out, size_t nbOutputs, int64_t workspaceSize) const noexcept=0
 Called during IConsistencyChecker::validate. Allows users to provide custom validation of serialized Plugin data. Returns boolean that indicates whether or not the Plugin passed validation. More...
 
 IPluginChecker ()=default
 
virtual ~IPluginChecker () override=default
 
- Public Member Functions inherited from nvinfer1::v_1_0::IPluginCreator
virtual AsciiChar const * getPluginName () const noexcept=0
 Return the plugin name. More...
 
virtual AsciiChar const * getPluginVersion () const noexcept=0
 Return the plugin version. More...
 
virtual PluginFieldCollection const * getFieldNames () noexcept=0
 Return a list of fields that need to be passed to createPlugin. More...
 
virtual IPluginV2createPlugin (AsciiChar const *name, PluginFieldCollection const *fc) noexcept=0
 Return a plugin object. Return nullptr in case of error. More...
 
virtual IPluginV2deserializePlugin (AsciiChar const *name, void const *serialData, size_t serialLength) noexcept=0
 Called during deserialization of plugin layer. Return a plugin object. More...
 
virtual void setPluginNamespace (AsciiChar const *pluginNamespace) noexcept=0
 Set the namespace of the plugin creator based on the plugin library it belongs to. This can be set while registering the plugin creator. More...
 
virtual AsciiChar const * getPluginNamespace () const noexcept=0
 Return the namespace of the plugin creator object. More...
 
 IPluginCreator ()=default
 
 ~IPluginCreator () override=default
 
InterfaceInfo getInterfaceInfo () const noexcept override
 Return version information associated with this interface. Applications must not override this method. More...
 
- Public Member Functions inherited from nvinfer1::v_1_0::IPluginCreatorInterface
 ~IPluginCreatorInterface () noexcept override=default
 
- Public Member Functions inherited from nvinfer1::IVersionedInterface
virtual APILanguage getAPILanguage () const noexcept
 The language used to build the implementation of this Interface. More...
 
virtual ~IVersionedInterface () noexcept=default
 

Protected Member Functions

 IPluginChecker (IPluginChecker const &)=default
 
 IPluginChecker (IPluginChecker &&)=default
 
IPluginCheckeroperator= (IPluginChecker const &) &=default
 
IPluginCheckeroperator= (IPluginChecker &&) &=default
 
- Protected Member Functions inherited from nvinfer1::v_1_0::IPluginCreatorInterface
 IPluginCreatorInterface ()=default
 
 IPluginCreatorInterface (IPluginCreatorInterface const &)=default
 
 IPluginCreatorInterface (IPluginCreatorInterface &&)=default
 
IPluginCreatorInterfaceoperator= (IPluginCreatorInterface const &) &=default
 
IPluginCreatorInterfaceoperator= (IPluginCreatorInterface &&) &=default
 
- Protected Member Functions inherited from nvinfer1::IVersionedInterface
 IVersionedInterface ()=default
 
 IVersionedInterface (IVersionedInterface const &)=default
 
 IVersionedInterface (IVersionedInterface &&)=default
 
IVersionedInterfaceoperator= (IVersionedInterface const &) &=default
 
IVersionedInterfaceoperator= (IVersionedInterface &&) &=default
 

Detailed Description

Consistency Checker plugin class for user implemented Plugins.

Plugins are a mechanism for applications to implement custom layers. It provides a mechanism to register Consistency plugins and look up the Plugin Registry during validate.

Supported IPlugin inferfaces are limited to IPluginV2IOExt only.

Constructor & Destructor Documentation

◆ IPluginChecker() [1/3]

nvinfer1::consistency::IPluginChecker::IPluginChecker ( )
default

◆ ~IPluginChecker()

virtual nvinfer1::consistency::IPluginChecker::~IPluginChecker ( )
overridevirtualdefault

◆ IPluginChecker() [2/3]

nvinfer1::consistency::IPluginChecker::IPluginChecker ( IPluginChecker const &  )
protecteddefault

◆ IPluginChecker() [3/3]

nvinfer1::consistency::IPluginChecker::IPluginChecker ( IPluginChecker &&  )
protecteddefault

Member Function Documentation

◆ operator=() [1/2]

IPluginChecker & nvinfer1::consistency::IPluginChecker::operator= ( IPluginChecker &&  ) &
protecteddefault

◆ operator=() [2/2]

IPluginChecker & nvinfer1::consistency::IPluginChecker::operator= ( IPluginChecker const &  ) &
protecteddefault

◆ validate()

virtual bool nvinfer1::consistency::IPluginChecker::validate ( char const *  name,
void const *  serialData,
size_t  serialLength,
PluginTensorDesc const *  in,
size_t  nbInputs,
PluginTensorDesc const *  out,
size_t  nbOutputs,
int64_t  workspaceSize 
) const
pure virtualnoexcept

Called during IConsistencyChecker::validate. Allows users to provide custom validation of serialized Plugin data. Returns boolean that indicates whether or not the Plugin passed validation.

Parameters
nameThe plugin name
serialDataThe memory that holds the plugin serialized data.
serialLengthThe size of the plugin serialized data.
inThe input tensors attributes.
nbInputsThe number of input tensors.
outThe output tensors attributes.
nbOutputsThe number of output tensors.
workspaceSizeThe size of workspace provided during enqueue.

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

  Copyright © 2024 NVIDIA Corporation
  Privacy Policy | Manage My Privacy | Do Not Sell or Share My Data | Terms of Service | Accessibility | Corporate Policies | Product Security | Contact