API Call Sequence

If network-wide model inference is involved, ensure that your app contains the code logic for model loading. For details about the API call sequence, see API Call Sequence. This section describes the API call sequence for loading a model. For details about loading and executing a single-operator, see Single-Operator Execution.

AscendCL provides two sets of model loading APIs for you to choose from based on your programming habits and application scenarios.

Figure 1 Model loading workflow (setting parameters in the model loading API)
Figure 2 Model loading workflow (using different model loading APIs)

The key APIs are described as follows: