aclmdlBundleLoadModelWithConfig
Applicability
|
Product |
Supported |
|---|---|
|
Atlas 350 Accelerator Card |
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Function Usage
Loads a graph from the model based on the graph index and allows specifying loading configurations.
Prototype
1
|
aclError aclmdlBundleLoadModelWithConfig(uint32_t bundleId, size_t index, aclmdlConfigHandle *handle, uint32_t *modelId) |
Parameters
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
bundleId |
Input |
Bundle ID returned after the model is successfully initialized by calling aclmdlBundleInitFromFile or aclmdlBundleInitFromMem. |
|
index |
Input |
Index. After aclmdlBundleGetQueryModelNum is called to obtain the total number of graphs, the value range of the index is [0, total_number_of_graphs – 1]. |
|
handle |
Input |
Pointer to the configuration object for model loading. Call aclmdlCreateConfigHandle to create an object in advance, which must be consistent with handle output by the aclmdlSetConfigOpt call. |
|
modelId |
Output |
ID of the executable graph. |
Returns
0 on success; else, failure. For details, see aclError.