|
TensorRT 11.2.1
|
Interface for extended recorder which allows error, warn, debug, or info messages to be recorded. More...
#include <NvInferSafeRecorder.h>
Public Member Functions | |
| ISafeRecorder (Severity severity_=Severity::kERROR, int32_t id_=-1) | |
| Constructor for ISafeRecorder. More... | |
| ISafeRecorder (ISafeRecorder const &)=delete | |
| Deleted copy constructor to maintain non-copyability. More... | |
| ISafeRecorder (ISafeRecorder &&)=delete | |
| Deleted move constructor to maintain non-movability. More... | |
| ISafeRecorder & | operator= (ISafeRecorder const &) &=delete |
| Deleted copy assignment operator to maintain non-copyability. More... | |
| ISafeRecorder & | operator= (ISafeRecorder &&) &=delete |
| Deleted move assignment operator to maintain non-movability. More... | |
| ~ISafeRecorder () noexcept override=default | |
| Destructor for ISafeRecorder. More... | |
| virtual void | setSeverity (Severity severity_) noexcept |
| Sets the severity level for the recorder. More... | |
| virtual Severity | getSeverity () const noexcept |
| Get the current severity level of the recorder. More... | |
| virtual int32_t | getId () const noexcept |
| Gets the identifier of the recorder. More... | |
| virtual bool | reportWarn (ErrorDesc) noexcept |
| Reports a warning message. More... | |
| virtual bool | reportDebug (ErrorDesc) noexcept |
| Reports a debug message. More... | |
| virtual bool | reportInfo (ErrorDesc) noexcept |
| Reports an informational message. More... | |
| virtual bool | reportVerbose (ErrorDesc) noexcept |
| Reports a verbose informational message. More... | |
Public Member Functions inherited from nvinfer1::v_1_0::IErrorRecorder | |
| InterfaceInfo | getInterfaceInfo () const noexcept override |
| Return version information associated with this interface. Applications must not override this method. More... | |
| IErrorRecorder ()=default | |
| ~IErrorRecorder () noexcept override=default | |
| virtual int32_t | getNbErrors () const noexcept=0 |
| Return the number of errors. More... | |
| virtual ErrorCode | getErrorCode (int32_t errorIdx) const noexcept=0 |
| Returns the ErrorCode enumeration. More... | |
| virtual ErrorDesc | getErrorDesc (int32_t errorIdx) const noexcept=0 |
| Returns a null-terminated C-style string description of the error. More... | |
| virtual bool | hasOverflowed () const noexcept=0 |
| Determine if the error stack has overflowed. More... | |
| virtual void | clear () noexcept=0 |
| Clear the error stack on the error recorder. More... | |
| virtual bool | reportError (ErrorCode val, ErrorDesc desc) noexcept=0 |
| Report an error to the error recorder with the corresponding enum and description. More... | |
| virtual RefCount | incRefCount () noexcept=0 |
| Increments the refcount for the current ErrorRecorder. More... | |
| virtual RefCount | decRefCount () noexcept=0 |
| Decrements the refcount for the current ErrorRecorder. More... | |
Public Member Functions inherited from nvinfer1::IVersionedInterface | |
| virtual APILanguage | getAPILanguage () const noexcept |
| The language used to build the implementation of this Interface. More... | |
| virtual | ~IVersionedInterface () noexcept=default |
Static Public Attributes | |
| static constexpr size_t | kMAX_SAFE_DESC_LENGTH {4095U} |
| The length limit for an error description in bytes, excluding the '\0' string terminator. More... | |
Static Public Attributes inherited from nvinfer1::v_1_0::IErrorRecorder | |
| static constexpr size_t | kMAX_DESC_LENGTH {127U} |
| The length limit for an error description in bytes, excluding the '\0' string terminator. Only applicable to safe runtime. General error recorder implementation can use any size appropriate for the use case. More... | |
Protected Attributes | |
| Severity | mSeverity |
| Severity level of the recorder; messages above this level are filtered. More... | |
| int32_t const | mId |
| Identifier of the recorder instance; used to distinguish recorders in multi-threaded use. More... | |
Additional Inherited Members | |
Public Types inherited from nvinfer1::v_1_0::IErrorRecorder | |
| using | ErrorDesc = char const * |
| A typedef of a C-style string for reporting error descriptions. More... | |
| using | RefCount = int32_t |
| A typedef of a 32-bit integer for reference counting. More... | |
Protected Member Functions inherited from nvinfer1::IVersionedInterface | |
| IVersionedInterface ()=default | |
| IVersionedInterface (IVersionedInterface const &)=default | |
| IVersionedInterface (IVersionedInterface &&)=default | |
| IVersionedInterface & | operator= (IVersionedInterface const &) &=default |
| IVersionedInterface & | operator= (IVersionedInterface &&) &=default |
Interface for extended recorder which allows error, warn, debug, or info messages to be recorded.
Inherits from IErrorRecorder and extends functionality to include various levels of message severity.
|
inline |
Constructor for ISafeRecorder.
| [in] | severity_ | Initial severity level for recording messages. Only messages with severity less than or equal to this level will be reported. |
| [in] | id_ | Optional identifier for the recorder instance; used to identify messages issued by different recorders in multiple threads. |
|
delete |
Deleted copy constructor to maintain non-copyability.
|
delete |
Deleted move constructor to maintain non-movability.
|
overridedefaultnoexcept |
Destructor for ISafeRecorder.
|
inlinevirtualnoexcept |
Gets the identifier of the recorder.
|
inlinevirtualnoexcept |
Get the current severity level of the recorder.
|
delete |
Deleted move assignment operator to maintain non-movability.
|
delete |
Deleted copy assignment operator to maintain non-copyability.
|
inlinevirtualnoexcept |
Reports a debug message.
| [in] | desc | Description of the debug information. |
|
inlinevirtualnoexcept |
Reports an informational message.
| [in] | desc | Description of the information. |
|
inlinevirtualnoexcept |
Reports a verbose informational message.
| [in] | desc | Description of the information. |
|
inlinevirtualnoexcept |
Reports a warning message.
| [in] | desc | Description of the warning. |
|
inlinevirtualnoexcept |
Sets the severity level for the recorder.
| [in] | severity_ | New severity level for recording messages. |
severity_; subsequent messages filtered by this level.
|
staticconstexpr |
The length limit for an error description in bytes, excluding the '\0' string terminator.
|
protected |
Identifier of the recorder instance; used to distinguish recorders in multi-threaded use.
|
protected |
Severity level of the recorder; messages above this level are filtered.
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