Function: set_attr_data_type

C Prototype

aclError aclopSetAttrDataType(aclopAttr *attr, const char *attrName, aclDataType attrValue)

Python Function

attr, ret = acl.op.set_attr_data_type(attr, attr_name, attr_value)

Function Usage

Sets the data type of a specified attribute.

Input Description

attr_name: str, attribute name.

attr_value: int, attribute value.

Return Value

attr: int, pointer address of the aclopAttr type. Call acl.op.create_attr to create data of the aclopAttr type in advance.

ret: int, error code.

Restrictions

None