Function: set_attr_float
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Sets the value (a scalar of the float type) of an attribute.
Prototype
- C Prototype
1aclError aclopSetAttrFloat(aclopAttr *attr, const char *attrName, float attrValue)
- Python Function
1ret = acl.op.set_attr_float(attr, attr_name, attr_value)
Parameter Description
Parameter |
Description |
|---|---|
attr |
Int, pointer address of the data of the aclopAttr type. Call acl.op.create_attr to create data of the aclopAttr type in advance. |
attr_name |
Str, attribute name. |
attr_value |
Int, attribute value. |
Return Value Description
Return Value |
Description |
|---|---|
ret |
Int, error code.
|
Parent topic: aclopAttr