aclmdlBundleGetModelNum

Applicability

Product

Supported

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

Description

Obtains the number of executable graphs based on the bundle ID.

Prototype

aclError aclmdlBundleGetModelNum(uint32_t bundleId, size_t *modelNum)

Parameters

Parameter

Input/Output

Description

bundleId

Input

Bundle ID returned after a model is successfully loaded by calling aclmdlBundleLoadFromFile or aclmdlBundleLoadFromMem.

modelNum

Output

Number of executable graphs.

Returns

0 on success; else, failure. For details, see aclError.