Overview

High-level APIs abstract and encapsulate common algorithms based on single-core processing to implement some common compute algorithms, aiming to improve programming and development efficiency. High-level APIs are generally implemented by calling multiple basic APIs. High-level APIs include APIs for mathematical computation, cube computation, and activation functions.

As shown in the following figure, to implement a cube multiplication operation, you need to pay attention to the logic such as format conversion and data tiling when using basic APIs. However, when you use high-level APIs, you do not need to pay attention to the logic. Instead, you can directly pass the input matrix and call APIs to obtain the output.