13#ifndef NV_UFF_PARSER_H
14#define NV_UFF_PARSER_H
25#define UFF_REQUIRED_VERSION_MAJOR 0
26#define UFF_REQUIRED_VERSION_MINOR 6
27#define UFF_REQUIRED_VERSION_PATCH 9
218extern "C"
TENSORRTAPI void* createNvUffParser_INTERNAL() noexcept;
#define TENSORRTAPI
Definition: NvInferRuntimeCommon.h:54
#define TRT_DEPRECATED
Definition: NvInferRuntimeCommon.h:40
Definition: NvInferRuntimeCommon.h:153
A network definition for input to the builder.
Definition: NvInfer.h:6158
An array of field params used as a layer parameter for plugin layers.
Definition: NvUffParser.h:73
void const * data
Definition: NvUffParser.h:76
char const * name
Definition: NvUffParser.h:75
FieldMap(char const *name, void const *data, const FieldType type, int32_t length=1)
Class used for parsing models described using the UFF format.
Definition: NvUffParser.h:97
virtual void setErrorRecorder(nvinfer1::IErrorRecorder *recorder) noexcept=0
Set the ErrorRecorder for this interface.
virtual bool registerOutput(char const *outputName) noexcept=0
Register an output name of a UFF network.
virtual void setPluginNamespace(char const *libNamespace) noexcept=0
Set the namespace used to lookup and create plugins in the network.
virtual int32_t getUffRequiredVersionPatch() noexcept=0
Return Patch Version of the UFF.
virtual TRT_DEPRECATED void destroy() noexcept=0
virtual bool parseBuffer(char const *buffer, std::size_t size, nvinfer1::INetworkDefinition &network, nvinfer1::DataType weightsType=nvinfer1::DataType::kFLOAT) noexcept=0
Parse a UFF buffer, useful if the file already live in memory.
virtual nvinfer1::IErrorRecorder * getErrorRecorder() const noexcept=0
get the ErrorRecorder assigned to this interface.
virtual bool parse(char const *file, nvinfer1::INetworkDefinition &network, nvinfer1::DataType weightsType=nvinfer1::DataType::kFLOAT) noexcept=0
Parse a UFF file.
virtual int32_t getUffRequiredVersionMajor() noexcept=0
Return Version Major of the UFF.
virtual int32_t getUffRequiredVersionMinor() noexcept=0
Return Version Minor of the UFF.
virtual bool registerInput(char const *inputName, nvinfer1::Dims inputDims, UffInputOrder inputOrder) noexcept=0
Register an input name of a UFF network with the associated Dimensions.
The TensorRT API version 1 namespace.
DataType
The type of weights and tensors.
Definition: NvInferRuntimeCommon.h:114
@ kFLOAT
32-bit floating point format.
The TensorRT UFF parser API namespace.
IUffParser * createUffParser() noexcept
Creates a IUffParser object.
FieldType
The possible field types for custom layer.
Definition: NvUffParser.h:54
@ kCHAR
char field type. String for length>1.
@ kDIMS
nvinfer1::Dims field type.
@ kINT32
INT32 field type.
@ kDATATYPE
nvinfer1::DataType field type.
void shutdownProtobufLibrary(void) noexcept
Shuts down protocol buffers library.
UffInputOrder
The different possible supported input order.
Definition: NvUffParser.h:42
Definition: NvUffParser.h:84
FieldMap const * fields
Definition: NvUffParser.h:86
int32_t nbFields
Definition: NvUffParser.h:85