Function: bundle_get_model_num
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 executable models based on bundle_id.
Prototype
-
C Prototype
aclError aclmdlBundleGetModelNum(uint32_t bundleId, size_t modelNum) -
Python Function
model_num, ret = acl.mdl.bundle_get_model_num(bundle_id)
Parameters
| Parameter | Description |
|---|---|
| bundle_id | Int, bundle_id returned after the model is successfully loaded through the acl.mdl.bundle_load_from_file API or the acl.mdl.bundle_load_from_mem API. |
Return Values
| Return Value | Description |
|---|---|
| model_num | Int, number of executable models. |
| ret | Int, error code: 0 on success; else, failure. |