Model
Function Usage
Constructor of the Model class.
Prototype
Model(std::string &modelPath, const int32_t deviceId = 0) // When the construction fails, the "std::runtime_error" exception occurs. Model(const Model&) = delete // Prohibits the copy constructor. Model &operate=(const Model&) = delete // Prohibits the assignment constructor.
Parameter Description
Parameter |
Input/Output |
Description |
|---|---|---|
modelPath |
Input |
Model path. A maximum of 4 GB models are supported, the model owner must be the current user, and the permission on the model file must be less than or equal to 640. |
deviceId |
Input |
Device where the model is deployed. The default value is 0. (The value -1 indicates that the model is deployed on the host. In this case, this field is reserved and cannot be used.) |
Parent topic: Model