Function: set_attr_list_list_int

C Prototype

aclError aclopSetAttrListListInt(aclopAttr *attr, const char *attrName, int numLists, const int *numValues, const int64_t *const values[]);

Python Function

ret = acl.op.set_attr_list_list_int(attr, attr_name , values)

Function Usage

Sets the values (lists of int64_t lists) of an attribute.

Input Description

attr: int, pointer address of the aclopAttr type data.

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).

Return Value

ret: int, error code.

Restrictions

  • You are advised to use the list data type for values because NumPy will not be supported as the input in future releases.
  • To use NumPy for values, ensure that the operating environment is Python 3.8 or later and NumPy 1.22.0 or later.