@Namespace(value="nvcaffeparser1") @Properties(inherit=nvparsers.class) public class ICaffeParser extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
ICaffeParser(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Deprecated.
Deprecated in TensorRT 8.0. Superseded by
delete.
\warning Calling destroy on a managed pointer will result in a double-free error. |
IErrorRecorder |
getErrorRecorder()
\brief get the ErrorRecorder assigned to this interface.
|
IBlobNameToTensor |
parse(BytePointer deploy,
BytePointer model,
INetworkDefinition network,
int weightType) |
IBlobNameToTensor |
parse(String deploy,
String model,
INetworkDefinition network,
nvinfer.DataType weightType)
\brief Parse a prototxt file and a binaryproto Caffe model to extract
network definition and weights associated with the network, respectively.
|
IBinaryProtoBlob |
parseBinaryProto(BytePointer fileName) |
IBinaryProtoBlob |
parseBinaryProto(String fileName)
\brief Parse and extract data stored in binaryproto file.
|
IBlobNameToTensor |
parseBuffers(byte[] deployBuffer,
long deployLength,
byte[] modelBuffer,
long modelLength,
INetworkDefinition network,
int weightType) |
IBlobNameToTensor |
parseBuffers(byte[] deployBuffer,
long deployLength,
byte[] modelBuffer,
long modelLength,
INetworkDefinition network,
nvinfer.DataType weightType) |
IBlobNameToTensor |
parseBuffers(ByteBuffer deployBuffer,
long deployLength,
ByteBuffer modelBuffer,
long modelLength,
INetworkDefinition network,
int weightType) |
IBlobNameToTensor |
parseBuffers(ByteBuffer deployBuffer,
long deployLength,
ByteBuffer modelBuffer,
long modelLength,
INetworkDefinition network,
nvinfer.DataType weightType) |
IBlobNameToTensor |
parseBuffers(BytePointer deployBuffer,
long deployLength,
BytePointer modelBuffer,
long modelLength,
INetworkDefinition network,
int weightType) |
IBlobNameToTensor |
parseBuffers(BytePointer deployBuffer,
long deployLength,
BytePointer modelBuffer,
long modelLength,
INetworkDefinition network,
nvinfer.DataType weightType)
\brief Parse a deploy prototxt and a binaryproto Caffe model from memory buffers to extract
network definition and weights associated with the network, respectively.
|
void |
setErrorRecorder(IErrorRecorder recorder)
\brief Set the ErrorRecorder for this interface
Assigns the ErrorRecorder to this interface.
|
void |
setPluginFactoryV2(IPluginFactoryV2 factory)
\brief Set the IPluginFactoryV2 used to create the user defined pluginV2 objects.
|
void |
setPluginNamespace(BytePointer libNamespace) |
void |
setPluginNamespace(String libNamespace)
\brief Set the namespace used to lookup and create plugins in the network.
|
void |
setProtobufBufferSize(long size)
\brief Set buffer size for the parsing and storage of the learned model.
|
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, zeropublic ICaffeParser(Pointer p)
Pointer(Pointer).@Const @NoException(value=true) public IBlobNameToTensor parse(String deploy, String model, @ByRef INetworkDefinition network, nvinfer.DataType weightType)
deploy - The plain text, prototxt file used to define the network definition.model - The binaryproto Caffe model that contains the weights associated with the network.network - Network in which the CaffeParser will fill the layers.weightType - The type to which the weights will transformed.nvcaffeparser1::IBlobNameToTensor@Const @NoException(value=true) public IBlobNameToTensor parse(@Cast(value="const char*") BytePointer deploy, @Cast(value="const char*") BytePointer model, @ByRef INetworkDefinition network, @Cast(value="nvinfer1::DataType") int weightType)
@Const @NoException(value=true) public IBlobNameToTensor parseBuffers(@Cast(value="const uint8_t*") BytePointer deployBuffer, @Cast(value="std::size_t") long deployLength, @Cast(value="const uint8_t*") BytePointer modelBuffer, @Cast(value="std::size_t") long modelLength, @ByRef INetworkDefinition network, nvinfer.DataType weightType)
deployBuffer - The plain text deploy prototxt used to define the network definition.deployLength - The length of the deploy buffer.modelBuffer - The binaryproto Caffe memory buffer that contains the weights associated with the network.modelLength - The length of the model buffer.network - Network in which the CaffeParser will fill the layers.weightType - The type to which the weights will transformed.nvcaffeparser1::IBlobNameToTensor@Const @NoException(value=true) public IBlobNameToTensor parseBuffers(@Cast(value="const uint8_t*") ByteBuffer deployBuffer, @Cast(value="std::size_t") long deployLength, @Cast(value="const uint8_t*") ByteBuffer modelBuffer, @Cast(value="std::size_t") long modelLength, @ByRef INetworkDefinition network, @Cast(value="nvinfer1::DataType") int weightType)
@Const @NoException(value=true) public IBlobNameToTensor parseBuffers(@Cast(value="const uint8_t*") byte[] deployBuffer, @Cast(value="std::size_t") long deployLength, @Cast(value="const uint8_t*") byte[] modelBuffer, @Cast(value="std::size_t") long modelLength, @ByRef INetworkDefinition network, nvinfer.DataType weightType)
@Const @NoException(value=true) public IBlobNameToTensor parseBuffers(@Cast(value="const uint8_t*") BytePointer deployBuffer, @Cast(value="std::size_t") long deployLength, @Cast(value="const uint8_t*") BytePointer modelBuffer, @Cast(value="std::size_t") long modelLength, @ByRef INetworkDefinition network, @Cast(value="nvinfer1::DataType") int weightType)
@Const @NoException(value=true) public IBlobNameToTensor parseBuffers(@Cast(value="const uint8_t*") ByteBuffer deployBuffer, @Cast(value="std::size_t") long deployLength, @Cast(value="const uint8_t*") ByteBuffer modelBuffer, @Cast(value="std::size_t") long modelLength, @ByRef INetworkDefinition network, nvinfer.DataType weightType)
@Const @NoException(value=true) public IBlobNameToTensor parseBuffers(@Cast(value="const uint8_t*") byte[] deployBuffer, @Cast(value="std::size_t") long deployLength, @Cast(value="const uint8_t*") byte[] modelBuffer, @Cast(value="std::size_t") long modelLength, @ByRef INetworkDefinition network, @Cast(value="nvinfer1::DataType") int weightType)
@NoException(value=true) public IBinaryProtoBlob parseBinaryProto(String fileName)
fileName - Path to file containing binary proto.nvcaffeparser1::IBinaryProtoBlob@NoException(value=true) public IBinaryProtoBlob parseBinaryProto(@Cast(value="const char*") BytePointer fileName)
@NoException(value=true) public void setProtobufBufferSize(@Cast(value="size_t") long size)
size - The size of the buffer specified as the number of bytes.
\note Default size is 2^30 bytes.@Deprecated @NoException(value=true) public void destroy()
delete.
\warning Calling destroy on a managed pointer will result in a double-free error.@NoException(value=true) public void setPluginFactoryV2(IPluginFactoryV2 factory)
factory - Pointer to an instance of the user implementation of IPluginFactoryV2.@NoException(value=true) public void setPluginNamespace(String libNamespace)
@NoException(value=true) public void setPluginNamespace(@Cast(value="const char*") BytePointer libNamespace)
@NoException(value=true) public void setErrorRecorder(IErrorRecorder recorder)
recorder - The error recorder to register with this interface.getErrorRecorder()@NoException(value=true) public IErrorRecorder getErrorRecorder()
setErrorRecorder()Copyright © 2024. All rights reserved.