Init
Function Usage
Initializes model inference. It is used together with DeInit.
Prototype
1 | APP_ERROR ModelInferenceProcessor::Init (std::string modelPath, ModelDesc& modelDesc); |
1 | APP_ERROR ModelInferenceProcessor::Init (const std::string& modelPath); |
Parameters
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. A model with a maximum size of 4 GB is supported. |
modelDesc |
Output |
Model description information. |
Response Parameters
Data Structure |
Description |
|---|---|
APP_ERROR |
For details about the returned error codes, see APP_ERROR Description. |
Parent topic: ModelInferenceProcessor