Function: bundle_get_model_num

Applicability

Product

Supported (√/x)

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas training products

Atlas inference products

Atlas 200I/500 A2 inference products

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)
    

Parameter Description

Parameter

Description

bundle_id

Int, bundle_id returned after the model is successfully loaded through the acl.mdl.bundle_load_from_file API or acl.mdl.bundle_load_from_mem API.

Return Value Description

Return Value

Description

model_num

Int, number of executable models.

ret

Int, error code: 0 on success; else, failure.