@Namespace(value="nvinfer1") @Properties(inherit=nvinfer.class) public class IPluginCreator extends Pointer
and IPluginFactory
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
IPluginCreator(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
IPluginV2 |
createPlugin(BytePointer name,
PluginFieldCollection fc) |
IPluginV2 |
createPlugin(String name,
PluginFieldCollection fc)
\brief Return a plugin object.
|
IPluginV2 |
deserializePlugin(BytePointer name,
Pointer serialData,
long serialLength) |
IPluginV2 |
deserializePlugin(String name,
Pointer serialData,
long serialLength)
\brief Called during deserialization of plugin layer.
|
PluginFieldCollection |
getFieldNames()
\brief Return a list of fields that needs to be passed to createPlugin.
|
String |
getPluginName()
\brief Return the plugin name.
|
String |
getPluginNamespace()
\brief Return the namespace of the plugin creator object.
|
String |
getPluginVersion()
\brief Return the plugin version.
|
int |
getTensorRTVersion()
\brief Return the version of the API the plugin creator was compiled with.
|
void |
setPluginNamespace(BytePointer pluginNamespace) |
void |
setPluginNamespace(String pluginNamespace)
\brief Set the namespace of the plugin creator based on the plugin
library it belongs to.
|
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 IPluginCreator(Pointer p)
Pointer(Pointer)
.@NoException(value=true) public int getTensorRTVersion()
@NoException(value=true) public String getPluginName()
@NoException(value=true) public String getPluginVersion()
@Const @NoException(value=true) public PluginFieldCollection getFieldNames()
@NoException(value=true) public IPluginV2 createPlugin(String name, @Const PluginFieldCollection fc)
@NoException(value=true) public IPluginV2 createPlugin(@Cast(value="const char*") BytePointer name, @Const PluginFieldCollection fc)
@NoException(value=true) public IPluginV2 deserializePlugin(String name, @Const Pointer serialData, @Cast(value="size_t") long serialLength)
@NoException(value=true) public IPluginV2 deserializePlugin(@Cast(value="const char*") BytePointer name, @Const Pointer serialData, @Cast(value="size_t") long serialLength)
@NoException(value=true) public void setPluginNamespace(String pluginNamespace)
\usage
- Allowed context for the API call
- Thread-safe: Yes, this method is required to be thread-safe and may be called from multiple threads
when building networks on multiple devices sharing the same plugin or when deserializing
multiple engines concurrently sharing plugins.
@NoException(value=true) public void setPluginNamespace(@Cast(value="const char*") BytePointer pluginNamespace)
@NoException(value=true) public String getPluginNamespace()
Copyright © 2024. All rights reserved.