Function: finalize_dump
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Description
Deinitializes the dump.
Prototype
- C Prototype
1aclError aclmdlFinalizeDump()
- Python Function
1ret = acl.mdl.finalize_dump()
Parameters
None
Return Value
Return Value |
Description |
|---|---|
ret |
Int, error code. 0 on success; else, failure. |
Restrictions
- acl.mdl.init_dump must be used in pair with acl.mdl.set_dump and acl.mdl.finalize_dump to dump data to files. These APIs can be called for multiple times in a single process to obtain dump data of different Dump configurations.
- Example scenario:
- To execute two models, you need to set dump information differently. The API call sequence is as follows: acl.init --> acl.mdl.init_dump --> acl.mdl.set_dump --> Model loading --> Model execution --> acl.mdl.finalize_dump --> Model unloading -> acl.mdl.init_dump -> acl.mdl.set_dump -> Model loading -> Model execution -> acl.mdl.finalize_dump -> Model unloading -> Other tasks -> acl.finalize
- To execute the same model twice, you only need to perform the dump operation for the first execution. The API call sequence is as follows: acl.init --> acl.mdl.init_dump --> acl.mdl.set_dump --> Model loading --> Model execution --> acl.mdl.finalize_dump --> Model unloading --> Model loading --> Model execution --> Other tasks --> acl.finalize
Reference
In addition, the acl.init API is provided. During initialization, the dump configuration information is transferred through the *.json file. After the application is run, the dump data is obtained. In this mode, the acl.init API can be called only once in a process. To modify the dump configuration, modify the configuration in the *.json file.
Parent topic: Dump Configuration