TensorRT  7.2.1.6
NVIDIA TensorRT
Looking for a C++ dev who knows TensorRT?
I'm looking for work. Hire me!
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
onnx_graphsurgeon.logger.logger.Logger Class Reference
Inheritance diagram for onnx_graphsurgeon.logger.logger.Logger:
Collaboration diagram for onnx_graphsurgeon.logger.logger.Logger:

Public Member Functions

def __init__ (self, severity=INFO, colors=True, letter=True, timestamp=False, line_info=False)
 
def severity (self)
 
def severity (self, value)
 
def register_callback (self, callback)
 
def indent (self, level=1)
 
def suppress (self, severity=CRITICAL)
 
def log (self, message, severity, mode=LogMode.EACH, stack_depth=2)
 
def ultra_verbose (self, message, mode=LogMode.EACH)
 
def verbose (self, message, mode=LogMode.EACH)
 
def debug (self, message, mode=LogMode.EACH)
 
def info (self, message, mode=LogMode.EACH)
 
def warning (self, message, mode=LogMode.EACH)
 
def error (self, message, mode=LogMode.EACH)
 
def critical (self, message)
 

Public Attributes

 logging_indent
 
 root_dir
 
 once_logged
 
 colors
 
 letter
 
 timestamp
 
 line_info
 
 logger_callbacks
 

Static Public Attributes

int ULTRA_VERBOSE = -10
 
int VERBOSE = 0
 
int DEBUG = 10
 
int INFO = 20
 
int WARNING = 30
 
int ERROR = 40
 
int CRITICAL = 50
 
dictionary SEVERITY_LETTER_MAPPING
 
dictionary SEVERITY_COLOR_MAPPING
 

Private Attributes

 _severity
 

Constructor & Destructor Documentation

◆ __init__()

def onnx_graphsurgeon.logger.logger.Logger.__init__ (   self,
  severity = INFO,
  colors = True,
  letter = True,
  timestamp = False,
  line_info = False 
)
Logger.

Args:
    severity (Logger.Severity): Messages below this severity are ignored.
    colors (bool): Whether to use colored output.
    letter (bool): Whether to prepend each logging message with a letter indicating it's severity. Defaults to True.
    timestamp (bool): Whether to include a timestamp in the logging output. Defaults to False.
    line_info (bool): Whether to include file and line number information in the logging output. Defaults to False.

Member Function Documentation

◆ severity() [1/2]

def onnx_graphsurgeon.logger.logger.Logger.severity (   self)
Here is the caller graph for this function:

◆ severity() [2/2]

def onnx_graphsurgeon.logger.logger.Logger.severity (   self,
  value 
)
Here is the call graph for this function:

◆ register_callback()

def onnx_graphsurgeon.logger.logger.Logger.register_callback (   self,
  callback 
)
Registers a callback with the logger, which will be invoked when the logging severity is modified.
The callback is guaranteed to be called at least once in the register_callback function.

Args:
    callback (Callable(Logger.Severity)): A callback that accepts the current logger severity.

◆ indent()

def onnx_graphsurgeon.logger.logger.Logger.indent (   self,
  level = 1 
)
Returns a context manager that indents all strings logged by the specified amount.

◆ suppress()

def onnx_graphsurgeon.logger.logger.Logger.suppress (   self,
  severity = CRITICAL 
)
Returns a context manager that temporarily changes the severity of the logger for its duration.

Args:
    severity (Logger.Severity): The severity to set the logger to. Defaults to Logger.CRITICAL, which will suppress all messages.

◆ log()

def onnx_graphsurgeon.logger.logger.Logger.log (   self,
  message,
  severity,
  mode = LogMode.EACH,
  stack_depth = 2 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ultra_verbose()

def onnx_graphsurgeon.logger.logger.Logger.ultra_verbose (   self,
  message,
  mode = LogMode.EACH 
)
Here is the call graph for this function:

◆ verbose()

def onnx_graphsurgeon.logger.logger.Logger.verbose (   self,
  message,
  mode = LogMode.EACH 
)
Here is the call graph for this function:

◆ debug()

def onnx_graphsurgeon.logger.logger.Logger.debug (   self,
  message,
  mode = LogMode.EACH 
)
Here is the call graph for this function:

◆ info()

def onnx_graphsurgeon.logger.logger.Logger.info (   self,
  message,
  mode = LogMode.EACH 
)
Here is the call graph for this function:

◆ warning()

def onnx_graphsurgeon.logger.logger.Logger.warning (   self,
  message,
  mode = LogMode.EACH 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ error()

def onnx_graphsurgeon.logger.logger.Logger.error (   self,
  message,
  mode = LogMode.EACH 
)
Here is the call graph for this function:

◆ critical()

def onnx_graphsurgeon.logger.logger.Logger.critical (   self,
  message 
)
Here is the call graph for this function:

Member Data Documentation

◆ ULTRA_VERBOSE

int onnx_graphsurgeon.logger.logger.Logger.ULTRA_VERBOSE = -10
static

◆ VERBOSE

int onnx_graphsurgeon.logger.logger.Logger.VERBOSE = 0
static

◆ DEBUG

int onnx_graphsurgeon.logger.logger.Logger.DEBUG = 10
static

◆ INFO

int onnx_graphsurgeon.logger.logger.Logger.INFO = 20
static

◆ WARNING

int onnx_graphsurgeon.logger.logger.Logger.WARNING = 30
static

◆ ERROR

int onnx_graphsurgeon.logger.logger.Logger.ERROR = 40
static

◆ CRITICAL

int onnx_graphsurgeon.logger.logger.Logger.CRITICAL = 50
static

◆ SEVERITY_LETTER_MAPPING

dictionary onnx_graphsurgeon.logger.logger.Logger.SEVERITY_LETTER_MAPPING
static
Initial value:
= {
ULTRA_VERBOSE: "[UV]",
VERBOSE: "[V]",
DEBUG: "[D]",
INFO: "[I]",
WARNING: "[W]",
ERROR: "[E]",
CRITICAL: "[C]",
}

◆ SEVERITY_COLOR_MAPPING

dictionary onnx_graphsurgeon.logger.logger.Logger.SEVERITY_COLOR_MAPPING
static
Initial value:
= {
ULTRA_VERBOSE: "cyan",
VERBOSE: "dark_gray",
DEBUG: "light_gray",
INFO: "light_green",
WARNING: "light_yellow",
ERROR: "red_1",
CRITICAL: "red_1",
}

◆ _severity

onnx_graphsurgeon.logger.logger.Logger._severity
private

◆ logging_indent

onnx_graphsurgeon.logger.logger.Logger.logging_indent

◆ root_dir

onnx_graphsurgeon.logger.logger.Logger.root_dir

◆ once_logged

onnx_graphsurgeon.logger.logger.Logger.once_logged

◆ colors

onnx_graphsurgeon.logger.logger.Logger.colors

◆ letter

onnx_graphsurgeon.logger.logger.Logger.letter

◆ timestamp

onnx_graphsurgeon.logger.logger.Logger.timestamp

◆ line_info

onnx_graphsurgeon.logger.logger.Logger.line_info

◆ logger_callbacks

onnx_graphsurgeon.logger.logger.Logger.logger_callbacks

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