Function: set_attr_list_list_int
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Sets the values (lists of int64_t lists) of an attribute.
Prototype
- C Prototype
1aclError aclopSetAttrListListInt(aclopAttr *attr, const char *attrName, int numLists, const int *numValues, const int64_t *const values[])
- Python Function
1ret = acl.op.set_attr_list_list_int(attr, attr_name , values)
Parameter Description
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). |
Return Value Description
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.
Parent topic: aclopAttr