Function: set_exception_info_callback
|
C Prototype |
aclError aclrtSetExceptionInfoCallback(aclrtExceptionInfoCallback callback) |
|---|---|
|
Python Function |
ret = acl.rt.set_exception_info_callback(fn) |
|
Function Usage |
Sets the exception callback function. |
|
Input Description |
fn: function, callback function on the Python side. The format is as follows: def exception_callback(exception_info) """ :exception_info: pointer address of aclrtExceptionInfo. :return: """ |
|
Return Value |
ret: int, error code.
|
|
Restrictions |
|
|
Reference |
For details about the API call example, see AI Core Troubleshooting. |