aclmdlSetAttribute
Applicable Products
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Sets model attributes.
After a model is successfully loaded, you can call this API to modify the attributes of the model.
Prototype
1 | aclError aclmdlSetAttribute(uint32_t modelId, aclmdlAttr attr, aclmdlAttrValue_t *attrValue) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
modelId |
Input |
Model ID. After a model loading API (such as aclmdlLoadFromFile or aclmdlLoadFromMem.) is successfully called, the model ID is returned. This ID is used as the input of this API. |
attr |
Input |
Attribute to set. For details about the type definition, see aclmdlAttr. |
attrValue |
Input |
Pointer to the attr value to set. For details about the type definition, see aclmdlAttrValue_t. |
Returns
0 on success; else, failure. For details, see aclError.