aclmdlBundleQueryInfoFromMem
Applicable Products
|
Product |
Supported |
|---|---|
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Function Usage
Obtains the model description from the memory if variables need to be dynamically updated during model execution.
Prototype
1
|
aclError aclmdlBundleQueryInfoFromMem(const void *model, size_t modelSize, aclmdlBundleQueryInfo *queryInfo) |
Parameters
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
model |
Input |
Pointer to the memory address for storing model data. The model file is built using the graph build API. Call aclgrphBundleBuildModel to compile the model, call aclgrphBundleSaveModel to save the model, and then load the saved .om model file into the memory. For details about the graph APIs, see "aclgrphBundleBuildModel" in the Graph Development. |
|
modelSize |
Input |
Size of the model data in the memory, in bytes. |
|
queryInfo |
Output |
Data of the aclmdlBundleQueryInfo type created by calling aclmdlBundleCreateQueryInfo. |
Returns
0 on success; else, failure. For details, see aclError.
Restrictions
In
In
In Open Ctrl CPU form, allocate memory on the device for the model parameter.