Function: bundle_get_model_num

Function Usage

Obtains the number of executable models based on bundle_id.

Prototype

  • C Prototype
    1
    aclError aclmdlBundleGetModelNum(uint32_t bundleId, size_t modelNum)
    
  • Python Function
    1
    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 or acl.mdl.bundle_load_from_mem API.

Returns

Return Value

Description

model_num

Int, number of executable models.

ret

Int, error code. 0 indicates success, and other values indicate failure.