@Namespace(value="nvcaffeparser1") @Properties(inherit=nvparsers.class) public class IPluginFactoryV2 extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
IPluginFactoryV2(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
IPluginV2 |
createPlugin(BytePointer layerName,
Weights weights,
int nbWeights) |
IPluginV2 |
createPlugin(BytePointer layerName,
Weights weights,
int nbWeights,
BytePointer libNamespace) |
IPluginV2 |
createPlugin(String layerName,
Weights weights,
int nbWeights) |
IPluginV2 |
createPlugin(String layerName,
Weights weights,
int nbWeights,
String libNamespace)
\brief Creates a plugin.
|
boolean |
isPluginV2(BytePointer layerName) |
boolean |
isPluginV2(String layerName)
\brief A user implemented function that determines if a layer configuration is provided by an IPluginV2.
|
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 IPluginFactoryV2(Pointer p)
Pointer(Pointer)
.@Cast(value="bool") @NoException(value=true) public boolean isPluginV2(String layerName)
layerName
- Name of the layer which the user wishes to validate.@Cast(value="bool") @NoException(value=true) public boolean isPluginV2(@Cast(value="const char*") BytePointer layerName)
@NoException(value=true) public IPluginV2 createPlugin(String layerName, @Const Weights weights, int nbWeights, String libNamespace)
layerName
- Name of layer associated with the plugin.weights
- Weights used for the layer.nbWeights
- Number of weights.libNamespace
- Library Namespace associated with the plugin object@NoException(value=true) public IPluginV2 createPlugin(String layerName, @Const Weights weights, int nbWeights)
@NoException(value=true) public IPluginV2 createPlugin(@Cast(value="const char*") BytePointer layerName, @Const Weights weights, int nbWeights, @Cast(value="const char*") BytePointer libNamespace)
@NoException(value=true) public IPluginV2 createPlugin(@Cast(value="const char*") BytePointer layerName, @Const Weights weights, int nbWeights)
Copyright © 2024. All rights reserved.