@Namespace(value="nvuffparser") @Properties(inherit=nvparsers.class) public class IUffParser extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
IUffParser(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Deprecated.
Use
delete instead. Deprecated in TRT 8.0. |
IErrorRecorder |
getErrorRecorder()
\brief get the ErrorRecorder assigned to this interface.
|
int |
getUffRequiredVersionMajor()
\brief Return Version Major of the UFF.
|
int |
getUffRequiredVersionMinor()
\brief Return Version Minor of the UFF.
|
int |
getUffRequiredVersionPatch()
\brief Return Patch Version of the UFF.
|
boolean |
parse(BytePointer file,
INetworkDefinition network) |
boolean |
parse(BytePointer file,
INetworkDefinition network,
int weightsType) |
boolean |
parse(String file,
INetworkDefinition network) |
boolean |
parse(String file,
INetworkDefinition network,
nvinfer.DataType weightsType)
\brief Parse a UFF file.
|
boolean |
parseBuffer(BytePointer buffer,
long size,
INetworkDefinition network) |
boolean |
parseBuffer(BytePointer buffer,
long size,
INetworkDefinition network,
int weightsType) |
boolean |
parseBuffer(String buffer,
long size,
INetworkDefinition network) |
boolean |
parseBuffer(String buffer,
long size,
INetworkDefinition network,
nvinfer.DataType weightsType)
\brief Parse a UFF buffer, useful if the file already live in memory.
|
boolean |
registerInput(BytePointer inputName,
Dims32 inputDims,
int inputOrder) |
boolean |
registerInput(String inputName,
Dims32 inputDims,
nvparsers.UffInputOrder inputOrder)
\brief Register an input name of a UFF network with the associated Dimensions.
|
boolean |
registerOutput(BytePointer outputName) |
boolean |
registerOutput(String outputName)
\brief Register an output name of a UFF network.
|
void |
setErrorRecorder(IErrorRecorder recorder) |
void |
setPluginNamespace(BytePointer libNamespace) |
void |
setPluginNamespace(String libNamespace)
\brief Set the namespace used to lookup and create plugins in the network.
|
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 IUffParser(Pointer p)
Pointer(Pointer).@Cast(value="bool") @NoException(value=true) public boolean registerInput(String inputName, @ByVal @Cast(value="nvinfer1::Dims*") Dims32 inputDims, nvparsers.UffInputOrder inputOrder)
inputName - Input name.inputDims - Input dimensions.inputOrder - Input order on which the framework input was originally.@Cast(value="bool") @NoException(value=true) public boolean registerInput(@Cast(value="const char*") BytePointer inputName, @ByVal @Cast(value="nvinfer1::Dims*") Dims32 inputDims, @Cast(value="nvuffparser::UffInputOrder") int inputOrder)
@Cast(value="bool") @NoException(value=true) public boolean registerOutput(String outputName)
outputName - Output name.@Cast(value="bool") @NoException(value=true) public boolean registerOutput(@Cast(value="const char*") BytePointer outputName)
@Cast(value="bool") @NoException(value=true) public boolean parse(String file, @ByRef INetworkDefinition network, nvinfer.DataType weightsType)
file - File name of the UFF file.network - Network in which the UFFParser will fill the layers.weightsType - The type on which the weights will transformed in.@Cast(value="bool") @NoException(value=true) public boolean parse(String file, @ByRef INetworkDefinition network)
@Cast(value="bool") @NoException(value=true) public boolean parse(@Cast(value="const char*") BytePointer file, @ByRef INetworkDefinition network, @Cast(value="nvinfer1::DataType") int weightsType)
@Cast(value="bool") @NoException(value=true) public boolean parse(@Cast(value="const char*") BytePointer file, @ByRef INetworkDefinition network)
@Cast(value="bool") @NoException(value=true) public boolean parseBuffer(String buffer, @Cast(value="std::size_t") long size, @ByRef INetworkDefinition network, nvinfer.DataType weightsType)
buffer - Buffer of the UFF file.size - Size of buffer of the UFF file.network - Network in which the UFFParser will fill the layers.weightsType - The type on which the weights will transformed in.@Cast(value="bool") @NoException(value=true) public boolean parseBuffer(String buffer, @Cast(value="std::size_t") long size, @ByRef INetworkDefinition network)
@Cast(value="bool") @NoException(value=true) public boolean parseBuffer(@Cast(value="const char*") BytePointer buffer, @Cast(value="std::size_t") long size, @ByRef INetworkDefinition network, @Cast(value="nvinfer1::DataType") int weightsType)
@Cast(value="bool") @NoException(value=true) public boolean parseBuffer(@Cast(value="const char*") BytePointer buffer, @Cast(value="std::size_t") long size, @ByRef INetworkDefinition network)
@Deprecated @NoException(value=true) public void destroy()
delete instead. Deprecated in TRT 8.0.@NoException(value=true) public int getUffRequiredVersionMajor()
@NoException(value=true) public int getUffRequiredVersionMinor()
@NoException(value=true) public int getUffRequiredVersionPatch()
@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)
/**@NoException(value=true) public IErrorRecorder getErrorRecorder()
setErrorRecorder()Copyright © 2024. All rights reserved.