aclmdlQueryExeOMDesc

The Atlas 200/300/500 Inference Product does not support this API.

The Atlas Training Series Product does not support this API.

Description

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 app must have the permission to access the directory.

The model file is offline model adapted to the Ascend AI Processor, that is, the *.exeom file.

mdlPartitionSize

Output

Struct pointer to the size of each partition required for model execution. The unit of the partition size is byte.

Returns

The value 0 indicates success, and other values indicate failure. For details, see aclError.