aclmdlQueryExeOMDesc
Applicable Products
Product |
Supported |
|---|---|
× |
|
× |
|
× |
|
× |
|
× |
|
× |
Function Usage
Obtains the workspace size, weight memory size, model descriptor memory size, and memory sizes for 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 path. |
mdlPartitionSize |
Output |
Pointer to the structure that stores the size of each partition required for model execution, in bytes. For the type definition, see aclmdlExeOMDesc. |
Returns
0 on success; else, failure. For details, see aclError.