Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Registers the dump data callback function.
The following two methods are supported:
Function: init -->Function: init_dump -->Function: dump_reg_callback --> Model loading --> Model execution -->Function: dump_unreg_callback -->Function: finalize_dump --> Model unloading -->Function: finalize
Function: init -->Function: dump_reg_callback --> Model loading --> Model execution -->Function: dump_unreg_callback --> Model unloading -->Function: finalize
Function: init --> Function: init_dump --> Function: dump_reg_callback --> Model 1 loading --> Model 1 execution --> --> Model 2 loading --> Model 2 execution --> Function: dump_unreg_callback --> Function: finalize_dump --> Model unloading --> Function: finalize
1 | aclError acldumpRegCallback(int32_t (* const messageCallback)(const acldumpChunk *, int32_t len), int32_t flag) |
1 | ret = acl.mdl.dump_reg_callback(mdl_dump_callback, flag) |
Parameter |
Description |
|---|---|
mdl_dump_callback |
Callback function used to receive callback data. It has the following parameters:
|
flag |
Int, whether to write dump data to a drive after the callback API is called.
|
Return Value |
Description |
|---|---|
ret |
Int, error code. 0 on success; else, failure. |
None