API Call Sequence

The model inference workflow in the dynamic AIPP scenario is similar to that in the scenario described in Developing a Basic Inference App. Both workflows include AscendCL initialization and deinitialization, runtime resource allocation and deallocation, model building, model loading, model execution, and model unloading.

This section focuses on the differences between the two scenarios.

AscendCL also supports Digital Vision Pre-Processing (DVPP), which introduces hardware-based media data processing techniques, including resizing, cropping, format conversion, image encoding and decoding, and video encoding and decoding. Compared with AIPP, DVPP offers a wider set of processing operations, but it has particular restrictions on the image input/output and memory allocation.

For details about the DVPP APIs, see Image/Video Data Processing.