Public Types | |
enum | InputDataFormat : int { InputDataFormat::kASCII = 0, InputDataFormat::kPPM = 1 } |
typedef int | Verbosity |
Defines Verbosity level. More... | |
Public Member Functions | |
SampleConfig () | |
void | setModelDtype (const nvinfer1::DataType mdt) |
Set the Model Data Type. More... | |
nvinfer1::DataType | getModelDtype () const |
Get the Model Data Type. More... | |
bool | getTF32 () const |
void | setTF32 (bool enabled) |
const char * | getModelFileName () const |
Get the Model FileName. More... | |
void | setModelFileName (const char *onnxFilename) |
Set the Model File Name. More... | |
Verbosity | getVerbosityLevel () const |
Get the Verbosity Level. More... | |
void | addVerbosity () |
Increase the Verbosity Level. More... | |
void | reduceVerbosity () |
Decrease verbosity Level. More... | |
virtual void | setVerbosityLevel (Verbosity v) |
const char * | getEngineFileName () const |
void | setEngineFileName (const char *engineFilename) |
const char * | getTextFileName () const |
Returns the File Name of the Network Description as a Text File. More... | |
void | setTextFileName (const char *textFilename) |
Set the File Name of the Network Description as a Text File. More... | |
const char * | getFullTextFileName () const |
Get the File Name of the Network Description as a Text File, including the weights. More... | |
void | setFullTextFileName (const char *fullTextFilename) |
Set the File Name of the Network Description as a Text File, including the weights. More... | |
bool | getPrintLayerInfo () const |
Get whether the layer information will be printed. More... | |
const char * | getImageFileName () const |
< set Image file name (PPM or ASCII) More... | |
void | setImageFileName (const char *imageFilename) |
const char * | getReferenceFileName () const |
void | setReferenceFileName (const char *referenceFilename) |
const char * | getOutputFileName () const |
< specifies the file to save the results More... | |
void | setOutputFileName (const char *outputFilename) |
void | setCalibrationFileName (const char *calibrationFilename) |
uint64_t | getTopK () const |
float | getFailurePercentage () const |
void | setFailurePercentage (float f) |
float | getTolerance () const |
void | setTolerance (float t) |
bool | isDebug () const |
void | destroy () |
Destroy IOnnxConfig object. More... | |
virtual void | setVerbosityLevel (Verbosity)=0 |
Set to specific verbosity Level. More... | |
virtual void | setPrintLayerInfo (bool)=0 |
Set whether the layer information will be printed. More... | |
Protected Member Functions | |
~SampleConfig () | |
Private Attributes | |
std::string | mModelFilename |
std::string | mEngineFilename |
std::string | mTextFilename |
std::string | mFullTextFilename |
std::string | mImageFilename |
std::string | mReferenceFilename |
std::string | mOutputFilename |
std::string | mCalibrationFilename |
int64_t | mLabel {-1} |
int64_t | mMaxBatchSize {32} |
int64_t | mMaxWorkspaceSize {1 * 1024 * 1024 * 1024} |
int64_t | mCalibBatchSize {0} |
int64_t | mMaxNCalibBatch {0} |
int64_t | mFirstCalibBatch {0} |
int64_t | mUseDLACore {-1} |
nvinfer1::DataType | mModelDtype {nvinfer1::DataType::kFLOAT} |
bool | mTF32 {true} |
Verbosity | mVerbosity {static_cast<int>(nvinfer1::ILogger::Severity::kWARNING)} |
bool | mPrintLayercInfo {false} |
bool | mDebugBuilder {false} |
InputDataFormat | mInputDataFormat {InputDataFormat::kASCII} |
uint64_t | mTopK {0} |
float | mFailurePercentage {-1.0f} |
float | mTolerance {0.0f} |
|
inherited |
Defines Verbosity level.
|
strong |
|
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.
|
inline |
|
inline |
|
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 |
|
inline |
|
inline |
|
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.
|
inline |
< set Image file name (PPM or ASCII)
|
inline |
imageFilename | get the Image file name |
|
inline |
|
inline |
referenceFilename | set reference file name |
|
inline |
< specifies the file to save the results
|
inline |
outputFilename | get the output file name |
|
inline |
calibrationFilename | get the int 8 calibration list file name |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Destroy IOnnxConfig object.
Implements nvonnxparser::IOnnxConfig.
|
pure virtualinherited |
Set to specific verbosity Level.
Implemented in ParserOnnxConfig.
|
pure virtualinherited |
Set whether the layer information will be printed.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |