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
167 return NV_TENSORRT_VERSION;
211 virtual bool parse(
const char* file,
223 virtual bool parseBuffer(
const char* buffer, std::size_t size,
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 int32_t getUffRequiredVersionMajor()=0
Return Version Major of the UFF.
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.
A network definition for input to the builder.
Definition: NvInfer.h:4927
virtual nvinfer1::IPlugin * createPlugin(const char *layerName, const nvinfer1::Weights *weights, int32_t nbWeights, const FieldCollection fc)=0
Creates a plugin.
An array of weights used as a layer parameter.
Definition: NvInferRuntime.h:110
FieldType
The possible field types for custom layer.
Definition: NvUffParser.h:90
virtual void setErrorRecorder(nvinfer1::IErrorRecorder *recorder)=0
Set the ErrorRecorder for this interface.
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:227
#define TRTNOEXCEPT
Definition: NvInferRuntimeCommon.h:103
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.
IUffParser * createUffParser()
Creates a IUffParser object.
char field type. String for length>1.
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.
DataType
The type of weights and tensors.
Definition: NvInferRuntimeCommon.h:169
nvinfer1::Dims field type.
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:1235
virtual void setPluginNamespace(const char *libNamespace)=0
Set the namespace used to lookup and create plugins in the network.
UffInputOrder
The different possible supported input order.
Definition: NvUffParser.h:78
virtual int32_t getUffRequiredVersionPatch()=0
Return Patch Version of the UFF.
32-bit floating point format.
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.
Plugin class for user-implemented layers.
Definition: NvInferRuntime.h:146
nvinfer1::DataType field type.
virtual int32_t getUffRequiredVersionMinor()=0
Return Version Minor of the UFF.