aclmdlGetDescFromMem
Description
Obtains model description from memory.
Prototype
aclError aclmdlGetDescFromMem(aclmdlDesc *modelDesc, const void *model, size_t modelSize)
Restrictions
The model description obtained using this API cannot be applied to aclmdlGetOpAttr or aclmdlGetCurOutputDims.
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
modelDesc |
Output |
Pointer to data of the aclmdlDesc type. Call aclmdlCreateDesc to create data of the aclmdlDesc type in advance. |
model |
Input |
Pointer to the memory address for storing model data. Allocate memory on the host or device based on where the app runs. For details about the buffer allocation API, see Memory Management. |
modelSize |
Input |
Size of the model in the memory, in bytes. |
Returns
The value 0 indicates success, and other values indicate failure. For details, see aclError.
Parent topic: aclmdlDesc