Go to the documentation of this file.
50 #ifndef NV_UFF_PARSER_H
51 #define NV_UFF_PARSER_H
62 #define UFF_REQUIRED_VERSION_MAJOR 0
63 #define UFF_REQUIRED_VERSION_MINOR 6
64 #define UFF_REQUIRED_VERSION_PATCH 9
117 FieldMap(
const char* name,
const void* data,
const FieldType type,
int length = 1) TRTNOEXCEPT;
139 virtual bool isPlugin(
const char* layerName) TRTNOEXCEPT = 0;
165 virtual int getVersion()
const TRTNOEXCEPT
167 return NV_TENSORRT_VERSION;
175 virtual bool isPluginExt(
const char* layerName) TRTNOEXCEPT = 0;
202 virtual bool registerOutput(
const char* outputName) TRTNOEXCEPT = 0;
211 virtual bool parse(
const char* file,
223 virtual bool parseBuffer(
const char* buffer, std::size_t size,
227 virtual void destroy() TRTNOEXCEPT = 0;
317 extern "C" TENSORRTAPI
void* createNvUffParser_INTERNAL() TRTNOEXCEPT;
Plugin factory used to configure plugins with added support for TRT versioning.
Definition: NvUffParser.h:162
Definition: NvUffParser.h:120
virtual bool registerOutput(const char *outputName)=0
Register an output name of a UFF network.
virtual bool isPluginExt(const char *layerName)=0
A user implemented function that determines if a layer configuration is provided by an IPluginExt.
virtual bool registerInput(const char *inputName, nvinfer1::Dims inputDims, UffInputOrder inputOrder)=0
Register an input name of a UFF network with the associated Dimensions.
virtual int getUffRequiredVersionMajor()=0
Return Version Major of the UFF.
A network definition for input to the builder.
Definition: NvInfer.h:4838
An array of weights used as a layer parameter.
Definition: NvInferRuntime.h:107
virtual void setErrorRecorder(nvinfer1::IErrorRecorder *recorder)=0
Set the ErrorRecorder for this interface.
32-bit floating point format.
virtual void setPluginFactoryExt(IPluginFactoryExt *factory)=0
Set the IPluginFactoryExt used to create the user defined pluginExts.
An array of field params used as a layer parameter for plugin layers.
Definition: NvUffParser.h:109
Structure to define the dimensions of a tensor.
Definition: NvInferRuntimeCommon.h:219
The TensorRT UFF parser API namespace.
virtual bool parse(const char *file, nvinfer1::INetworkDefinition &network, nvinfer1::DataType weightsType=nvinfer1::DataType::kFLOAT)=0
Parse a UFF file.
char field type. String for length>1.
IUffParser * createUffParser()
Creates a IUffParser object.
virtual int getUffRequiredVersionPatch()=0
Return Patch Version of the UFF.
DataType
The type of weights and tensors.
Definition: NvInferRuntimeCommon.h:163
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.
virtual void setPluginFactory(IPluginFactory *factory)=0
Set the IPluginFactory used to create the user defined plugins.
Class used for parsing models described using the UFF format.
Definition: NvUffParser.h:185
virtual bool isPlugin(const char *layerName)=0
A user implemented function that determines if a layer configuration is provided by an IPlugin.
Reference counted application-implemented error reporting interface for TensorRT objects.
Definition: NvInferRuntimeCommon.h:1175
virtual void setPluginNamespace(const char *libNamespace)=0
Set the namespace used to lookup and create plugins in the network.
nvinfer1::DataType field type.
Plugin factory used to configure plugins.
Definition: NvUffParser.h:131
void shutdownProtobufLibrary(void)
Shuts down protocol buffers library.
virtual nvinfer1::IErrorRecorder * getErrorRecorder() const =0
get the ErrorRecorder assigned to this interface.
nvinfer1::Dims field type.
Plugin class for user-implemented layers.
Definition: NvInferRuntime.h:143
virtual nvinfer1::IPlugin * createPlugin(const char *layerName, const nvinfer1::Weights *weights, int nbWeights, const FieldCollection fc)=0
Creates a plugin.
FieldType
The possible field types for custom layer.
Definition: NvUffParser.h:90
virtual int getUffRequiredVersionMinor()=0
Return Version Minor of the UFF.
UffInputOrder
The different possible supported input order.
Definition: NvUffParser.h:78