TensorRT  7.2.1.6
NVIDIA TensorRT
Looking for a C++ dev who knows TensorRT?
I'm looking for work. Hire me!
nvuffparser::IUffParser Class Referenceabstract

Class used for parsing models described using the UFF format. More...

Public Member Functions

virtual bool registerInput (const char *inputName, nvinfer1::Dims inputDims, UffInputOrder inputOrder)=0
 Register an input name of a UFF network with the associated Dimensions. More...
 
virtual bool registerOutput (const char *outputName)=0
 Register an output name of a UFF network. More...
 
virtual bool parse (const char *file, nvinfer1::INetworkDefinition &network, nvinfer1::DataType weightsType=nvinfer1::DataType::kFLOAT)=0
 Parse a UFF file. More...
 
virtual bool parseBuffer (const char *buffer, std::size_t size, nvinfer1::INetworkDefinition &network, nvinfer1::DataType weightsType=nvinfer1::DataType::kFLOAT)=0
 Parse a UFF buffer, useful if the file already live in memory. More...
 
virtual void destroy ()=0
 
virtual int32_t getUffRequiredVersionMajor ()=0
 Return Version Major of the UFF. More...
 
virtual int32_t getUffRequiredVersionMinor ()=0
 Return Version Minor of the UFF. More...
 
virtual int32_t getUffRequiredVersionPatch ()=0
 Return Patch Version of the UFF. More...
 
virtual void setPluginFactory (IPluginFactory *factory)=0
 Set the IPluginFactory used to create the user defined plugins. More...
 
virtual void setPluginFactoryExt (IPluginFactoryExt *factory)=0
 Set the IPluginFactoryExt used to create the user defined pluginExts. More...
 
virtual void setPluginNamespace (const char *libNamespace)=0
 Set the namespace used to lookup and create plugins in the network. More...
 
virtual void setErrorRecorder (nvinfer1::IErrorRecorder *recorder)=0
 Set the ErrorRecorder for this interface. More...
 
virtual nvinfer1::IErrorRecordergetErrorRecorder () const =0
 get the ErrorRecorder assigned to this interface. More...
 

Protected Member Functions

virtual ~IUffParser ()
 

Detailed Description

Class used for parsing models described using the UFF format.

Warning
Do not inherit from this class, as doing so will break forward-compatibility of the API and ABI.

Constructor & Destructor Documentation

◆ ~IUffParser()

virtual nvuffparser::IUffParser::~IUffParser ( )
inlineprotectedvirtual

Member Function Documentation

◆ registerInput()

virtual bool nvuffparser::IUffParser::registerInput ( const char *  inputName,
nvinfer1::Dims  inputDims,
UffInputOrder  inputOrder 
)
pure virtual

Register an input name of a UFF network with the associated Dimensions.

Parameters
inputNameInput name.
inputDimsInput dimensions.
inputOrderInput order on which the framework input was originally.

◆ registerOutput()

virtual bool nvuffparser::IUffParser::registerOutput ( const char *  outputName)
pure virtual

Register an output name of a UFF network.

Parameters
outputNameOutput name.

◆ parse()

virtual bool nvuffparser::IUffParser::parse ( const char *  file,
nvinfer1::INetworkDefinition network,
nvinfer1::DataType  weightsType = nvinfer1::DataType::kFLOAT 
)
pure virtual

Parse a UFF file.

Parameters
fileFile name of the UFF file.
networkNetwork in which the UFFParser will fill the layers.
weightsTypeThe type on which the weights will transformed in.

◆ parseBuffer()

virtual bool nvuffparser::IUffParser::parseBuffer ( const char *  buffer,
std::size_t  size,
nvinfer1::INetworkDefinition network,
nvinfer1::DataType  weightsType = nvinfer1::DataType::kFLOAT 
)
pure virtual

Parse a UFF buffer, useful if the file already live in memory.

Parameters
bufferBuffer of the UFF file.
sizeSize of buffer of the UFF file.
networkNetwork in which the UFFParser will fill the layers.
weightsTypeThe type on which the weights will transformed in.

◆ destroy()

virtual void nvuffparser::IUffParser::destroy ( )
pure virtual

◆ getUffRequiredVersionMajor()

virtual int32_t nvuffparser::IUffParser::getUffRequiredVersionMajor ( )
pure virtual

Return Version Major of the UFF.

◆ getUffRequiredVersionMinor()

virtual int32_t nvuffparser::IUffParser::getUffRequiredVersionMinor ( )
pure virtual

Return Version Minor of the UFF.

◆ getUffRequiredVersionPatch()

virtual int32_t nvuffparser::IUffParser::getUffRequiredVersionPatch ( )
pure virtual

Return Patch Version of the UFF.

◆ setPluginFactory()

virtual void nvuffparser::IUffParser::setPluginFactory ( IPluginFactory factory)
pure virtual

Set the IPluginFactory used to create the user defined plugins.

Parameters
factoryPointer to an instance of the user implmentation of IPluginFactory.

◆ setPluginFactoryExt()

virtual void nvuffparser::IUffParser::setPluginFactoryExt ( IPluginFactoryExt factory)
pure virtual

Set the IPluginFactoryExt used to create the user defined pluginExts.

Parameters
factoryPointer to an instance of the user implmentation of IPluginFactoryExt.

◆ setPluginNamespace()

virtual void nvuffparser::IUffParser::setPluginNamespace ( const char *  libNamespace)
pure virtual

Set the namespace used to lookup and create plugins in the network.

◆ setErrorRecorder()

virtual void nvuffparser::IUffParser::setErrorRecorder ( nvinfer1::IErrorRecorder recorder)
pure virtual

Set the ErrorRecorder for this interface.

Assigns the ErrorRecorder to this interface. The ErrorRecorder will track all errors during execution. This function will call incRefCount of the registered ErrorRecorder at least once. Setting recorder to nullptr unregisters the recorder with the interface, resulting in a call to decRefCount if a recorder has been registered.

Parameters
recorderThe error recorder to register with this interface.
See also
getErrorRecorder

◆ getErrorRecorder()

virtual nvinfer1::IErrorRecorder* nvuffparser::IUffParser::getErrorRecorder ( ) const
pure virtual

get the ErrorRecorder assigned to this interface.

Retrieves the assigned error recorder object for the given class. A default error recorder does not exist, so a nullptr will be returned if setErrorRecorder has not been called.

Returns
A pointer to the IErrorRecorder object that has been registered.
See also
setErrorRecorder

The documentation for this class was generated from the following file: