aclmdlQueryExeOMDesc

Applicability

Product

Supported

Atlas 350 Accelerator Card

×

Atlas A3 training product/Atlas A3 inference product

×

Atlas A2 training product/Atlas A2 inference product

×

Atlas 200I/500 A2 inference product

×

Atlas inference product

×

Atlas training product

×

Function Usage

Obtains the workspace, weight memory, model description information, and memory sizes of static and dynamic shape tasks required for model execution based on the model file.

Prototype

aclError aclmdlQueryExeOMDesc(const char *fileName, aclmdlExeOMDesc *mdlPartitionSize)

Parameters

Parameter

Input/Output

Description

fileName

Input

Pointer to the model file path, which contains the file name. The user who runs the application must have the permission to access the directory.

The model file is an .exeom model file.

mdlPartitionSize

Output

Struct pointer to the size of each partition required for model execution. The unit of the partition size is byte. For details about the type definition, see aclmdlExeOMDesc.

Returns

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