Logger¶
-
class
tensorrt.
Logger
(self: tensorrt.tensorrt.Logger, min_severity: tensorrt.tensorrt.Logger.Severity = Severity.WARNING) → None¶ Logger for the
Builder
,ICudaEngine
andRuntime
.Parameters: min_severity – The initial minimum severity of this Logger. Variables: min_severity – Logger.Severity
This minimum required severity of messages for the logger to log them.Note that although a logger is passed on creation to each instance of a
Builder
orRuntime
interface, the logger is internally considered a singleton, and thus multiple instances ofRuntime
and/orBuilder
must all use the same logger.-
class
Severity
(self: tensorrt.tensorrt.Logger.Severity, arg0: int) → None¶ Members:
- WARNING :
- Represents an application error that TensorRT has recovered from or fallen back to a default.
- INFO :
- Represents informational messages.
- INTERNAL_ERROR :
- Represents an internal error. Execution is unrecoverable.
- ERROR :
- Represents an application error.
- VERBOSE :
- Verbose messages with debugging information.
-
log
(self: tensorrt.tensorrt.Logger, severity: tensorrt.tensorrt.Logger.Severity, msg: str) → None¶ Logs a message to stderr .
Parameters: - severity – The severity of the message.
- msg – The log message.
Derived classes should generally overload this function.
-
class
It is also possible to access the Severity
Enum values directly in the Logger
scope.
tensorrt.Logger.VERBOSE
corresponds totensorrt.Logger.Severity.VERBOSE
tensorrt.Logger.INFO
corresponds totensorrt.Logger.Severity.INFO
tensorrt.Logger.WARNING
corresponds totensorrt.Logger.Severity.WARNING
tensorrt.Logger.ERROR
corresponds totensorrt.Logger.Severity.ERROR
tensorrt.Logger.INTERNAL_ERROR
corresponds totensorrt.Logger.Severity.INTERNAL_ERROR