50 #ifndef NV_CAFFE_PARSER_H
51 #define NV_CAFFE_PARSER_H
60 namespace nvcaffeparser1
96 virtual const void* getData() = 0;
99 virtual void destroy() = 0;
117 virtual bool isPlugin(
const char* layerName) = 0;
137 virtual int getVersion()
const
139 return NV_TENSORRT_VERSION;
147 virtual bool isPluginExt(
const char* layerName) = 0;
238 TENSORRTAPI
void shutdownProtobufLibrary();
DataType
The type of weights and tensors.
Definition: NvInfer.h:118
virtual nvinfer1::ITensor * find(const char *name) const =0
Given a blob name, returns a pointer to a ITensor object.
virtual void destroy()=0
Destroy this ICaffeParser object.
Plugin class for user-implemented layers.
Definition: NvInfer.h:2355
virtual void setProtobufBufferSize(size_t size)=0
Set buffer size for the parsing and storage of the learned model.
Class used for parsing Caffe models.
Definition: NvCaffeParser.h:157
virtual void setPluginFactoryExt(IPluginFactoryExt *factory)=0
Set the IPluginFactoryExt used to create the user defined pluginExts.
Object used to store and query data extracted from a binaryproto file using the ICaffeParser.
Definition: NvCaffeParser.h:93
A network definition for input to the builder.
Definition: NvInfer.h:2975
virtual bool isPlugin(const char *layerName)=0
A user implemented function that determines if a layer configuration is provided by an IPlugin...
Plugin factory used to configure plugins with added support for TRT versioning.
Definition: NvCaffeParser.h:134
virtual IBinaryProtoBlob * parseBinaryProto(const char *fileName)=0
Parse and extract data stored in binaryproto file.
Descriptor for data with one index dimension, one channel dimension and two spatial dimensions...
Definition: NvInfer.h:398
Plugin factory used to configure plugins.
Definition: NvCaffeParser.h:109
A tensor in a network definition.
Definition: NvInfer.h:580
An array of weights used as a layer parameter.
Definition: NvInfer.h:493
virtual const IBlobNameToTensor * parse(const char *deploy, const char *model, nvinfer1::INetworkDefinition &network, nvinfer1::DataType weightType)=0
Parse a prototxt file and a binaryproto Caffe model to extract network configuration and weights asso...
virtual nvinfer1::IPlugin * createPlugin(const char *layerName, const nvinfer1::Weights *weights, int nbWeights)=0
Creates a plugin.
virtual bool isPluginExt(const char *layerName)=0
A user implemented function that determines if a layer configuration is provided by an IPluginExt...
virtual void setPluginFactory(IPluginFactory *factory)=0
Set the IPluginFactory used to create the user defined plugins.
Object used to store and query Tensors after they have been extracted from a Caffe model using the IC...
Definition: NvCaffeParser.h:72