@Namespace(value="nvinfer1") @Properties(inherit=nvinfer.class) public class IPluginRegistry extends Pointer
Modifier and Type | Class and Description |
---|---|
static class |
IPluginRegistry.PluginLibraryHandle
\brief Pointer for plugin library handle.
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
IPluginRegistry(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
IPluginResource |
acquirePluginResource(BytePointer key,
IPluginResource resource) |
IPluginResource |
acquirePluginResource(String key,
IPluginResource resource)
\brief Get a plugin resource
|
boolean |
deregisterCreator(IPluginCreator creator)
Deprecated.
Deprecated in TensorRT 10.0. Superseded by
IPluginRegistry::deregisterCreator(IPluginCreatorInterface const&).
|
boolean |
deregisterCreator(IPluginCreatorInterface creator)
\brief Deregister a previously registered plugin creator.
|
void |
deregisterLibrary(IPluginRegistry.PluginLibraryHandle handle)
\brief Deregister plugins associated with a library.
|
PointerPointer |
getAllCreators(IntPointer numCreators)
\brief Return all registered plugin creators.
|
IPluginCreatorInterface |
getCreator(BytePointer pluginName,
BytePointer pluginVersion) |
IPluginCreatorInterface |
getCreator(BytePointer pluginName,
BytePointer pluginVersion,
BytePointer pluginNamespace) |
IPluginCreatorInterface |
getCreator(String pluginName,
String pluginVersion) |
IPluginCreatorInterface |
getCreator(String pluginName,
String pluginVersion,
String pluginNamespace)
\brief Return a registered plugin creator based on plugin name, version, and namespace associated with the
plugin during network creation.
|
IErrorRecorder |
getErrorRecorder()
\brief Get the ErrorRecorder assigned to this interface.
|
IPluginCreator |
getPluginCreator(BytePointer pluginName,
BytePointer pluginVersion)
Deprecated.
|
IPluginCreator |
getPluginCreator(BytePointer pluginName,
BytePointer pluginVersion,
BytePointer pluginNamespace)
Deprecated.
|
IPluginCreator |
getPluginCreator(String pluginName,
String pluginVersion)
Deprecated.
|
IPluginCreator |
getPluginCreator(String pluginName,
String pluginVersion,
String pluginNamespace)
Deprecated.
Deprecated in TensorRT 10.0. Superseded by IPluginRegistry::getCreator(AsciiChar const* const,
AsciiChar const* const, AsciiChar const* const).
|
PointerPointer |
getPluginCreatorList(IntPointer numCreators)
Deprecated.
Deprecated in TensorRT 10.0. Superseded by IPluginRegistry::getAllCreators(int32_t* const).
|
boolean |
isParentSearchEnabled()
\brief Return whether the parent registry will be searched if a plugin is not found in this registry
default: true
|
IPluginRegistry.PluginLibraryHandle |
loadLibrary(BytePointer pluginPath) |
IPluginRegistry.PluginLibraryHandle |
loadLibrary(String pluginPath)
\brief Load and register a shared library of plugins.
|
boolean |
registerCreator(IPluginCreator creator,
BytePointer pluginNamespace)
Deprecated.
|
boolean |
registerCreator(IPluginCreatorInterface creator,
BytePointer pluginNamespace) |
boolean |
registerCreator(IPluginCreatorInterface creator,
String pluginNamespace)
\brief Register a plugin creator.
|
boolean |
registerCreator(IPluginCreator creator,
String pluginNamespace)
Deprecated.
Deprecated in TensorRT 10.0. Superseded by
IPluginRegistry::registerCreator(IPluginCreatorInterface&, AsciiChar const* const).
|
int |
releasePluginResource(BytePointer key) |
int |
releasePluginResource(String key)
\brief Decrement reference count for the resource with this key
If reference count goes to zero after decrement, release() will be invoked on the resource, the key will
be deregistered and the resource object will be deleted
|
void |
setErrorRecorder(IErrorRecorder recorder)
\brief Set the ErrorRecorder for this interface
Assigns the ErrorRecorder to this interface.
|
void |
setParentSearchEnabled(boolean enabled)
\brief Set whether the parent registry will be searched if a plugin is not found in this registry.
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public IPluginRegistry(Pointer p)
Pointer(Pointer)
.@Cast(value="bool") @Deprecated @NoException(value=true) public boolean registerCreator(@ByRef IPluginCreator creator, String pluginNamespace)
@Cast(value="bool") @Deprecated @NoException(value=true) public boolean registerCreator(@ByRef IPluginCreator creator, @Cast(value="const char*") BytePointer pluginNamespace)
@Cast(value="nvinfer1::IPluginCreator*const*") public PointerPointer getPluginCreatorList(IntPointer numCreators)
@Deprecated @NoException(value=true) public IPluginCreator getPluginCreator(String pluginName, String pluginVersion, String pluginNamespace)
@Deprecated @NoException(value=true) public IPluginCreator getPluginCreator(String pluginName, String pluginVersion)
@Deprecated @NoException(value=true) public IPluginCreator getPluginCreator(@Cast(value="const char*") BytePointer pluginName, @Cast(value="const char*") BytePointer pluginVersion, @Cast(value="const char*") BytePointer pluginNamespace)
@Deprecated @NoException(value=true) public IPluginCreator getPluginCreator(@Cast(value="const char*") BytePointer pluginName, @Cast(value="const char*") BytePointer pluginVersion)
@NoException(value=true) public void setErrorRecorder(IErrorRecorder recorder)
recorder
- The error recorder to register with this interface.\usage
- Allowed context for the API call
- Thread-safe: No
@NoException(value=true) public IErrorRecorder getErrorRecorder()
\usage
- Allowed context for the API call
- Thread-safe: Yes
@Cast(value="bool") @Deprecated @NoException(value=true) public boolean deregisterCreator(@Const @ByRef IPluginCreator creator)
@Cast(value="bool") public boolean isParentSearchEnabled()
setParentSearchEnabled
public void setParentSearchEnabled(@Cast(value="const bool") boolean enabled)
enabled
- The bool variable indicating whether parent search is enabled.isParentSearchEnabled
@NoException(value=true) public IPluginRegistry.PluginLibraryHandle loadLibrary(String pluginPath)
pluginPath
- the plugin library path.@NoException(value=true) public IPluginRegistry.PluginLibraryHandle loadLibrary(@Cast(value="const char*") BytePointer pluginPath)
@NoException(value=true) public void deregisterLibrary(IPluginRegistry.PluginLibraryHandle handle)
handle
- the plugin library handle to deregister.@Cast(value="bool") @NoException(value=true) public boolean registerCreator(@ByRef IPluginCreatorInterface creator, String pluginNamespace)
@Cast(value="bool") @NoException(value=true) public boolean registerCreator(@ByRef IPluginCreatorInterface creator, @Cast(value="const char*") BytePointer pluginNamespace)
@Cast(value="nvinfer1::IPluginCreatorInterface*const*") @NoException(value=true) public PointerPointer getAllCreators(IntPointer numCreators)
@NoException(value=true) public IPluginCreatorInterface getCreator(String pluginName, String pluginVersion, String pluginNamespace)
@NoException(value=true) public IPluginCreatorInterface getCreator(String pluginName, String pluginVersion)
@NoException(value=true) public IPluginCreatorInterface getCreator(@Cast(value="const char*") BytePointer pluginName, @Cast(value="const char*") BytePointer pluginVersion, @Cast(value="const char*") BytePointer pluginNamespace)
@NoException(value=true) public IPluginCreatorInterface getCreator(@Cast(value="const char*") BytePointer pluginName, @Cast(value="const char*") BytePointer pluginVersion)
@Cast(value="bool") @NoException(value=true) public boolean deregisterCreator(@Const @ByRef IPluginCreatorInterface creator)
@NoException(value=true) public IPluginResource acquirePluginResource(String key, IPluginResource resource)
key
- Key for identifying the resource. Cannot be null.resource
- A plugin resource object. The object will only need to be valid until this method returns, as
only a clone of this object will be registered by TRT. Cannot be null.@NoException(value=true) public IPluginResource acquirePluginResource(@Cast(value="const char*") BytePointer key, IPluginResource resource)
@NoException(value=true) public int releasePluginResource(String key)
key
- Key that was used to register the resource. Cannot be null.@NoException(value=true) public int releasePluginResource(@Cast(value="const char*") BytePointer key)
Copyright © 2024. All rights reserved.