Configuration Manager Class. More...
Public Types | |
typedef int | Verbosity |
Defines Verbosity level. More... | |
Public Member Functions | |
virtual void | setModelDtype (const nvinfer1::DataType)=0 |
Set the Model Data Type. More... | |
virtual nvinfer1::DataType | getModelDtype () const =0 |
Get the Model Data Type. More... | |
virtual const char * | getModelFileName () const =0 |
Get the Model FileName. More... | |
virtual void | setModelFileName (const char *onnxFilename)=0 |
Set the Model File Name. More... | |
virtual Verbosity | getVerbosityLevel () const =0 |
Get the Verbosity Level. More... | |
virtual void | addVerbosity ()=0 |
Increase the Verbosity Level. More... | |
virtual void | reduceVerbosity ()=0 |
Decrease verbosity Level. More... | |
virtual void | setVerbosityLevel (Verbosity)=0 |
Set to specific verbosity Level. More... | |
virtual const char * | getTextFileName () const =0 |
Returns the File Name of the Network Description as a Text File. More... | |
virtual void | setTextFileName (const char *textFileName)=0 |
Set the File Name of the Network Description as a Text File. More... | |
virtual const char * | getFullTextFileName () const =0 |
Get the File Name of the Network Description as a Text File, including the weights. More... | |
virtual void | setFullTextFileName (const char *fullTextFileName)=0 |
Set the File Name of the Network Description as a Text File, including the weights. More... | |
virtual bool | getPrintLayerInfo () const =0 |
Get whether the layer information will be printed. More... | |
virtual void | setPrintLayerInfo (bool)=0 |
Set whether the layer information will be printed. More... | |
virtual void | destroy ()=0 |
Destroy IOnnxConfig object. More... | |
Protected Member Functions | |
virtual | ~IOnnxConfig () |
Configuration Manager Class.
Defines Verbosity level.
|
inlineprotectedvirtual |
|
pure virtual |
Set the Model Data Type.
Sets the Model DataType, one of the following: float -d 32 (default), half precision -d 16, and int8 -d 8 data types.
Implemented in ParserOnnxConfig, and SampleConfig.
|
pure virtual |
Get the Model Data Type.
Implemented in SampleConfig, and ParserOnnxConfig.
|
pure virtual |
Get the Model FileName.
Implemented in SampleConfig, and ParserOnnxConfig.
|
pure virtual |
Set the Model File Name.
The Model File name contains the Network Description in ONNX pb format.
This method copies the name string.
onnxFilename | The name. |
Implemented in SampleConfig, and ParserOnnxConfig.
|
pure virtual |
Get the Verbosity Level.
Implemented in SampleConfig, and ParserOnnxConfig.
|
pure virtual |
Increase the Verbosity Level.
Implemented in SampleConfig, and ParserOnnxConfig.
|
pure virtual |
Decrease verbosity Level.
Implemented in SampleConfig, and ParserOnnxConfig.
|
pure virtual |
Set to specific verbosity Level.
Implemented in ParserOnnxConfig.
|
pure virtual |
Returns the File Name of the Network Description as a Text File.
Implemented in SampleConfig, and ParserOnnxConfig.
|
pure virtual |
Set the File Name of the Network Description as a Text File.
This API allows setting a file name for the network description in plain text, equivalent of the ONNX protobuf.
This method copies the name string.
textFileName | Name of the file. |
Implemented in SampleConfig, and ParserOnnxConfig.
|
pure virtual |
Get the File Name of the Network Description as a Text File, including the weights.
Implemented in SampleConfig, and ParserOnnxConfig.
|
pure virtual |
Set the File Name of the Network Description as a Text File, including the weights.
This API allows setting a file name for the network description in plain text, equivalent of the ONNX protobuf.
This method copies the name string.
fullTextFileName | Name of the file. |
Implemented in SampleConfig, and ParserOnnxConfig.
|
pure virtual |
Get whether the layer information will be printed.
Implemented in SampleConfig, and ParserOnnxConfig.
|
pure virtual |
Set whether the layer information will be printed.
|
pure virtual |
Destroy IOnnxConfig object.
Implemented in SampleConfig, and ParserOnnxConfig.