18#ifndef NV_INFER_RUNTIME_COMMON_H
19#define NV_INFER_RUNTIME_COMMON_H
31#define NV_INFER_INTERNAL_INCLUDE 1
33#undef NV_INFER_INTERNAL_INCLUDE
113 AsciiChar const*
const pluginVersion,
AsciiChar const*
const pluginNamespace =
"") noexcept = 0;
255 AsciiChar const* const pluginNamespace = "") noexcept = 0;
#define TRT_DEPRECATED
Definition: NvInferRuntimeBase.h:45
Single registration point for all plugins in an application. It is used to find plugin implementation...
Definition: NvInferRuntimeCommon.h:56
virtual IErrorRecorder * getErrorRecorder() const noexcept=0
Get the ErrorRecorder assigned to this interface.
virtual PluginLibraryHandle loadLibrary(AsciiChar const *pluginPath) noexcept=0
Load and register a shared library of plugins.
void * PluginLibraryHandle
Pointer for plugin library handle.
Definition: NvInferRuntimeCommon.h:61
virtual TRT_DEPRECATED bool registerCreator(IPluginCreator &creator, AsciiChar const *const pluginNamespace) noexcept=0
Register a plugin creator implementing IPluginCreator. Returns false if any plugin creator with the s...
virtual bool isParentSearchEnabled() const =0
Return whether the parent registry will be searched if a plugin is not found in this registry default...
virtual IPluginCreatorInterface *const * getAllCreators(int32_t *const numCreators) const noexcept=0
Return all registered plugin creators. Returns nullptr if none found.
virtual TRT_DEPRECATED IPluginCreator * getPluginCreator(AsciiChar const *const pluginName, AsciiChar const *const pluginVersion, AsciiChar const *const pluginNamespace="") noexcept=0
Return plugin creator based on plugin name, version, and namespace associated with plugin during netw...
virtual void setErrorRecorder(IErrorRecorder *const recorder) noexcept=0
Set the ErrorRecorder for this interface.
virtual int32_t releasePluginResource(AsciiChar const *key) noexcept=0
Decrement reference count for the resource with this key If reference count goes to zero after decrem...
virtual void setParentSearchEnabled(bool const enabled)=0
Set whether the parent registry will be searched if a plugin is not found in this registry.
virtual void deregisterLibrary(PluginLibraryHandle handle) noexcept=0
Deregister plugins associated with a library. Any resources acquired when the library was loaded will...
virtual IPluginResource * acquirePluginResource(AsciiChar const *key, IPluginResource *resource) noexcept=0
Get a plugin resource.
virtual TRT_DEPRECATED bool deregisterCreator(IPluginCreator const &creator) noexcept=0
Deregister a previously registered plugin creator implementing IPluginCreator.
virtual IPluginCreatorInterface * getCreator(AsciiChar const *const pluginName, AsciiChar const *const pluginVersion, AsciiChar const *const pluginNamespace="") noexcept=0
Return a registered plugin creator based on plugin name, version, and namespace associated with the p...
virtual TRT_DEPRECATED IPluginCreator *const * getPluginCreatorList(int32_t *const numCreators) const noexcept=0
Return all the registered plugin creators and the number of registered plugin creators....
Definition: NvInferRuntimeBase.h:400
Definition: NvInferRuntimePlugin.h:834
Definition: NvInferPluginBase.h:193
Definition: NvInferPluginBase.h:145
The TensorRT API version 1 namespace.
char_t AsciiChar
Definition: NvInferRuntimeBase.h:105