Function: dump_unreg_callback
Applicable Products
- Ascend 950PR&950DT products: Supported
- Atlas A3 products: supported
- Atlas A2 products: Supported
- Atlas 200I/500 A2 inference products: Supported
- Atlas inference products: Supported
- Atlas training products: Supported
Function
Deregisters the dump data callback function.
The function: init_dump, function: dump_reg_callback (the callback function registered through this API needs to be implemented by the user. The implementation logic of the callback function includes obtaining the dump data and data length), function: dump_unreg_callback, and function: finalize_dump APIs are used together to obtain dump data through the callback function. The following are some example scenarios:
-
Execute a model and obtain dump data through callback.
Function: init API --> Function: dump_reg_callback API --> Function: init_dump API --> Model loading --> Model execution --> Function: finalize_dump API --> Function: dump_unreg_callback API --> Model unloading --> Function: finalize API
-
Execute two different models and obtain dump data through callback. In this context, as long as the callback function is not deregistered by calling Function: dump_unreg_callback, you can obtain the dump data of both models through the callback function.
Function: init API --> Function: dump_reg_callback API --> Function: init_dump API --> Model 1 loading --> Model 1 execution -->--> Model 2 loading --> Model 2 execution --> Function: finalize_dump API --> Model unloading --> Function: dump_unreg_callback API --> Function: finalize API
Prototype
-
C Prototype
void acldumpUnregCallback() -
Python Function
acl.mdl.dump_unreg_callback()
Parameters
None
Return Values
None
Constraints
acl.mdl.dump_unreg_callback must be used together with acl.mdl.dump_reg_callback and is valid only after acl.mdl.dump_reg_callback is called.