TensorRT 10.0.1
nvonnxparser::IOnnxConfig Class Referenceabstract

Configuration Manager Class. More...

#include <NvOnnxConfig.h>

Public Types

typedef int32_t Verbosity
 Defines Verbosity level. More...
 

Public Member Functions

virtual ~IOnnxConfig () noexcept=default
 
virtual void setModelDtype (const nvinfer1::DataType) noexcept=0
 Set the Model Data Type. More...
 
virtual nvinfer1::DataType getModelDtype () const noexcept=0
 Get the Model Data Type. More...
 
virtual char const * getModelFileName () const noexcept=0
 Get the Model FileName. More...
 
virtual void setModelFileName (char const *onnxFilename) noexcept=0
 Set the Model File Name. More...
 
virtual Verbosity getVerbosityLevel () const noexcept=0
 Get the Verbosity Level. More...
 
virtual void addVerbosity () noexcept=0
 Increase the Verbosity Level. More...
 
virtual void reduceVerbosity () noexcept=0
 Reduce the Verbosity Level. More...
 
virtual void setVerbosityLevel (Verbosity) noexcept=0
 Set to specific verbosity Level. More...
 
virtual char const * getTextFileName () const noexcept=0
 Returns the File Name of the Network Description as a Text File. More...
 
virtual void setTextFileName (char const *textFileName) noexcept=0
 Set the File Name of the Network Description as a Text File. More...
 
virtual char const * getFullTextFileName () const noexcept=0
 Get the File Name of the Network Description as a Text File, including the weights. More...
 
virtual void setFullTextFileName (char const *fullTextFileName) noexcept=0
 Set the File Name of the Network Description as a Text File, including the weights. More...
 
virtual bool getPrintLayerInfo () const noexcept=0
 Get whether the layer information will be printed. More...
 
virtual void setPrintLayerInfo (bool) noexcept=0
 Set whether the layer information will be printed. More...
 

Detailed Description

Configuration Manager Class.

Member Typedef Documentation

◆ Verbosity

Defines Verbosity level.

Constructor & Destructor Documentation

◆ ~IOnnxConfig()

virtual nvonnxparser::IOnnxConfig::~IOnnxConfig ( )
virtualdefaultnoexcept

Member Function Documentation

◆ addVerbosity()

virtual void nvonnxparser::IOnnxConfig::addVerbosity ( )
pure virtualnoexcept

Increase the Verbosity Level.

Returns
The Verbosity Level.
See also
reduceVerbosity(), setVerbosity(Verbosity)

◆ getFullTextFileName()

virtual char const * nvonnxparser::IOnnxConfig::getFullTextFileName ( ) const
pure virtualnoexcept

Get the File Name of the Network Description as a Text File, including the weights.

Returns
Return the name of the file containing the network description converted to a plain text, used for debugging purposes.
See also
setFullTextFilename()

◆ getModelDtype()

virtual nvinfer1::DataType nvonnxparser::IOnnxConfig::getModelDtype ( ) const
pure virtualnoexcept

Get the Model Data Type.

Returns
the data type of the model.
See also
setModelDtype() and DataType

◆ getModelFileName()

virtual char const * nvonnxparser::IOnnxConfig::getModelFileName ( ) const
pure virtualnoexcept

Get the Model FileName.

Returns
Return the Model Filename, as a null-terminated C-style string.
See also
setModelFileName()

◆ getPrintLayerInfo()

virtual bool nvonnxparser::IOnnxConfig::getPrintLayerInfo ( ) const
pure virtualnoexcept

Get whether the layer information will be printed.

Returns
Returns whether the layer information will be printed.
See also
setPrintLayerInfo()

◆ getTextFileName()

virtual char const * nvonnxparser::IOnnxConfig::getTextFileName ( ) const
pure virtualnoexcept

Returns the File Name of the Network Description as a Text File.

Returns
Return the name of the file containing the network description converted to a plain text, used for debugging purposes.
See also
setTextFilename()

◆ getVerbosityLevel()

virtual Verbosity nvonnxparser::IOnnxConfig::getVerbosityLevel ( ) const
pure virtualnoexcept

Get the Verbosity Level.

Returns
The Verbosity Level.
See also
addVerbosity(), reduceVerbosity()

◆ reduceVerbosity()

virtual void nvonnxparser::IOnnxConfig::reduceVerbosity ( )
pure virtualnoexcept

Reduce the Verbosity Level.

See also
addVerbosity(), setVerbosity(Verbosity)

◆ setFullTextFileName()

virtual void nvonnxparser::IOnnxConfig::setFullTextFileName ( char const *  fullTextFileName)
pure virtualnoexcept

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.

Parameters
fullTextFileNameName of the file.
See also
getFullTextFilename()

◆ setModelDtype()

virtual void nvonnxparser::IOnnxConfig::setModelDtype ( const nvinfer1::DataType  )
pure virtualnoexcept

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.

See also
getModelDtype()

◆ setModelFileName()

virtual void nvonnxparser::IOnnxConfig::setModelFileName ( char const *  onnxFilename)
pure virtualnoexcept

Set the Model File Name.

The Model File name contains the Network Description in ONNX pb format.

This method copies the name string.

Parameters
onnxFilenameThe name.
See also
getModelFileName()

◆ setPrintLayerInfo()

virtual void nvonnxparser::IOnnxConfig::setPrintLayerInfo ( bool  )
pure virtualnoexcept

Set whether the layer information will be printed.

See also
getPrintLayerInfo()

◆ setTextFileName()

virtual void nvonnxparser::IOnnxConfig::setTextFileName ( char const *  textFileName)
pure virtualnoexcept

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.

Parameters
textFileNameName of the file.
See also
getTextFilename()

◆ setVerbosityLevel()

virtual void nvonnxparser::IOnnxConfig::setVerbosityLevel ( Verbosity  )
pure virtualnoexcept

Set to specific verbosity Level.

See also
addVerbosity(), reduceVerbosity()

The documentation for this class was generated from the following file:

  Copyright © 2024 NVIDIA Corporation
  Privacy Policy | Manage My Privacy | Do Not Sell or Share My Data | Terms of Service | Accessibility | Corporate Policies | Product Security | Contact