CANN Kit provides the capabilities of collecting AI model performance statistics and obtaining performance data. Currently, the HiAI_OmType API allows you to quickly obtain profiling or dump data using an AI model and randomly constructed input files. You can analyze the performance data of models and single operators, and locate problems by comparing the output accuracy of model layers.
Profiling mode:
Dump mode:
You can obtain the performance data by referring to CANN Kit Codelab. Currently, this feature is supported only on Huawei phones running HarmonyOS 6.0.0(20) or later. The corresponding developer suite which includes DevEco Studio and the SDK can be found in the Release Notes.