Intel(R) MKL-DNN exception class. More...
#include <mkldnn.hpp>
Inherits exception.
Public Member Functions | |
error (mkldnn_status_t astatus, const char *amessage) | |
Constructs an error instance. More... | |
const char * | what () const noexcept override |
Returns the explanatory string. | |
Static Public Member Functions | |
static void | wrap_c_api (mkldnn_status_t status, const char *message) |
A convenience function for wrapping calls to the C API. More... | |
Intel(R) MKL-DNN exception class.
This class captures the status returned by the failed C API function, error message, and, optionally, handle of the primitive that caused the error.
|
inline |
Constructs an error instance.
astatus | The error status returned by the C API. |
amessage | The error message. |
|
inlinestatic |
A convenience function for wrapping calls to the C API.
Checks the return status and throws an error in case of failure.
status | The error status returned by the C API. |
message | The error message. |