Configuration Manager Class Concrete Implementation. More...
Public Types | |
typedef int | Verbosity |
Defines Verbosity level. More... | |
Public Member Functions | |
ParserOnnxConfig () | |
virtual void | setModelDtype (const nvinfer1::DataType modelDtype) |
Set the Model Data Type. More... | |
virtual nvinfer1::DataType | getModelDtype () const |
Get the Model Data Type. More... | |
virtual const char * | getModelFileName () const |
Get the Model FileName. More... | |
virtual void | setModelFileName (const char *onnxFilename) |
Set the Model File Name. More... | |
virtual nvonnxparser::IOnnxConfig::Verbosity | getVerbosityLevel () const |
Get the Verbosity Level. More... | |
virtual void | addVerbosity () |
Increase the Verbosity Level. More... | |
virtual void | reduceVerbosity () |
Decrease verbosity Level. More... | |
virtual void | setVerbosityLevel (nvonnxparser::IOnnxConfig::Verbosity verbosity) |
Set to specific verbosity Level. More... | |
virtual const char * | getTextFileName () const |
Returns the File Name of the Network Description as a Text File. More... | |
virtual void | setTextFileName (const char *textFilename) |
Set the File Name of the Network Description as a Text File. More... | |
virtual const char * | getFullTextFileName () const |
Get the File Name of the Network Description as a Text File, including the weights. More... | |
virtual void | setFullTextFileName (const char *fullTextFilename) |
Set the File Name of the Network Description as a Text File, including the weights. More... | |
virtual bool | getPrintLayerInfo () const |
Get whether the layer information will be printed. More... | |
virtual bool | isDebug () const |
virtual void | destroy () |
Destroy IOnnxConfig object. More... | |
virtual void | setPrintLayerInfo (bool)=0 |
Set whether the layer information will be printed. More... | |
Protected Member Functions | |
~ParserOnnxConfig () | |
Protected Attributes | |
string | mModelFilename {} |
string | mTextFilename {} |
string | mFullTextFilename {} |
nvinfer1::DataType | mModelDtype |
nvonnxparser::IOnnxConfig::Verbosity | mVerbosity |
bool | mPrintLayercInfo |
Configuration Manager Class Concrete Implementation.
|
inherited |
Defines Verbosity level.
|
inline |
|
inlineprotected |
|
inlinevirtual |
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.
Implements nvonnxparser::IOnnxConfig.
|
inlinevirtual |
Get the Model Data Type.
Implements nvonnxparser::IOnnxConfig.
|
inlinevirtual |
Get the Model FileName.
Implements nvonnxparser::IOnnxConfig.
|
inlinevirtual |
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. |
Implements nvonnxparser::IOnnxConfig.
|
inlinevirtual |
Get the Verbosity Level.
Implements nvonnxparser::IOnnxConfig.
|
inlinevirtual |
Increase the Verbosity Level.
Implements nvonnxparser::IOnnxConfig.
|
inlinevirtual |
Decrease verbosity Level.
Implements nvonnxparser::IOnnxConfig.
|
inlinevirtual |
Set to specific verbosity Level.
Implements nvonnxparser::IOnnxConfig.
|
inlinevirtual |
Returns the File Name of the Network Description as a Text File.
Implements nvonnxparser::IOnnxConfig.
|
inlinevirtual |
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. |
Implements nvonnxparser::IOnnxConfig.
|
inlinevirtual |
Get the File Name of the Network Description as a Text File, including the weights.
Implements nvonnxparser::IOnnxConfig.
|
inlinevirtual |
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. |
Implements nvonnxparser::IOnnxConfig.
|
inlinevirtual |
Get whether the layer information will be printed.
Implements nvonnxparser::IOnnxConfig.
|
inlinevirtual |
|
inlinevirtual |
Destroy IOnnxConfig object.
Implements nvonnxparser::IOnnxConfig.
|
pure virtualinherited |
Set whether the layer information will be printed.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |