Function: get_num_outputs
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 number of model outputs based on data of the aclmdlDesc type.
Prototype
-
C Prototype
size_t aclmdlGetNumOutputs(aclmdlDesc *modelDesc) -
Python Function
size = acl.mdl.get_num_outputs(model_desc)
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. |
Return Values
| Return Value | Description |
|---|---|
| size | Int, number of model outputs. |