Function: set_attr_list_data_type

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas training product

Atlas inference product

Atlas 200I/500 A2 inference product

Function Usage

Sets the data type of a specified attribute list.

Prototype

  • C Prototype
    1
    aclError aclopSetAttrListDataType(aclopAttr *attr, const char *attrName, int numValues, const aclDataType values[])
    
  • Python Function
    1
    attr, ret = acl.op.set_attr_list_data_type(attr, attr_name, values)
    

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.

values

List of attribute values.

Returns

Return Value

Description

attr

Int, pointer address of the aclopAttr type.

Call create_attr to create data of the aclopAttr type in advance.