Function: set_attr_data_type
Applicability
|
Product |
Supported |
|---|---|
|
Atlas 350 Accelerator Card |
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Function Usage
Sets the data type of a specified attribute.
Prototype
- C Prototype
1aclError aclopSetAttrDataType(aclopAttr *attr, const char *attrName, aclDataType attrValue)
- Python Function
1attr, ret = acl.op.set_attr_data_type(attr, attr_name, attr_value)
Parameters
|
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. |
Returns
|
Return Value |
Description |
|---|---|
|
attr |
Int, pointer address of the aclopAttr type. Call create_attr to create data of the aclopAttr type in advance. |
|
ret |
Int, error code. |