Function: set_attr_list_list_int

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 values (lists of int64_t lists) of an attribute.

Prototype

  • C Prototype
    1
    aclError aclopSetAttrListListInt(aclopAttr *attr, const char *attrName, int numLists, const int *numValues, const int64_t *const values[])
    
  • Python Function
    1
    ret = acl.op.set_attr_list_list_int(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, which consists of multiple lists (each element in the lists is int type) or a one-dimensional array NumPy object (int64 type).

Returns

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.