Function: get_desc
Applicable Products
- Ascend 950PR&950DT products: Supported
- Atlas A3 products: Supported
- Atlas A2 products: Supported
- Atlas 200I/500 A2 inference products: Supported
- Atlas inference products: Supported
- Atlas training products: Supported
Function
Obtains the model description based on the model ID.
Prototype
-
C Prototype
aclError aclmdlGetDesc(aclmdlDesc *modelDesc, uint32_t modelId) -
Python Function
ret = acl.mdl.get_desc(model_desc, model_id)
Parameters
| Parameter | Description |
|---|---|
| model_desc | Int, pointer address of the data of the aclmdlDesc type. Call the acl.mdl.create_desc API to create data of the aclmdlDesc type in advance. |
| model_id | Int, model ID. |
Return Values
| Return Value | Description |
|---|---|
| ret | Int, error code.0: successOther values: failure |