|
TensorRT 8.2.5
|
Consistency Checker plugin class for user implemented Plugins. More...
#include <NvInferConsistency.h>
Public Member Functions | |
| virtual bool | validate (const char *name, const void *serialData, size_t serialLength, const PluginTensorDesc *in, size_t nbInputs, const PluginTensorDesc *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... | |
Public Member Functions inherited from nvinfer1::IPluginCreator | |
| virtual int32_t | getTensorRTVersion () const noexcept |
| Return the version of the API the plugin creator was compiled with. More... | |
| 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 needs to be passed to createPlugin. More... | |
| virtual IPluginV2 * | createPlugin (AsciiChar const *name, PluginFieldCollection const *fc) noexcept=0 |
| Return a plugin object. Return nullptr in case of error. More... | |
| virtual IPluginV2 * | deserializePlugin (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... | |
Protected Member Functions | |
| IPluginChecker (IPluginChecker const &)=default | |
| IPluginChecker (IPluginChecker &&)=default | |
| IPluginChecker & | operator= (IPluginChecker const &) &=default |
| IPluginChecker & | operator= (IPluginChecker &&) &=default |
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.
|
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.
| name | The plugin name |
| serialData | The memory that holds the plugin serialized data. |
| serialLength | The size of the plugin serialized data. |
| in | The input tensors attributes. |
| nbInputs | The number of input tensors. |
| out | The output tensors attributes. |
| nbOutputs | The number of output tensors. |
| workspaceSize | The size of workspace provided during enqueue. |
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