Function: set_attr_list_float
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Sets the values (a list of floats) of an attribute.
Prototype
- C Prototype
1aclError aclopSetAttrListFloat(aclopAttr *attr, const char *attrName, int numValues, const float *attrValue)
- Python Function
1ret = acl.op.set_attr_list_float(attr, attr_name, num_values , 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 |
Two data types are supported:
|
Return Value Description
Return Value |
Description |
|---|---|
ret |
Int, error code.
|
Restrictions
- You are advised to use the list data type for attr_value because NumPy will not be supported as the input in future releases.
- To use NumPy for attr_value, ensure that the operating environment is Python 3.8 or later and NumPy 1.22.0 or later.
Parent topic: aclopAttr