Init

Function Usage

Initializes model inference.

Prototype

APP_ERROR Init (std::string modelPath, ModelDesc& modelDesc);
APP_ERROR Init (const std::string& modelPath);

Parameter Description

Parameter

Input/Output

Description

modelPath

Input

Model file path

The owner of the model in the path must be the current user, and the permission cannot be higher than 640.

The maximum size of a model is 4 GB.

modelDesc

Output

Model description information

Return Parameter Description

Data Structure

Description

APP_ERROR

Error code returned during program execution. For details, see the MxBase/ErrorCode/ErrorCode.h file.