Function: create_attr
Applicable Products
- Ascend 950PR&950DT products: Supported
- Atlas A3 products: Supported
- Atlas A2 products: Supported
- Atlas 200I/500 A2 inference products: Supported
- Atlas inference products: Supported
- Atlas training products: Supported
Function
Creates data of the aclopAttr type to store operator attributes.
To destroy data of the aclopAttr type, see acl.op.destroy_attr.
Prototype
-
C Prototype
aclopAttr *aclopCreateAttr() -
Python Function
attr = acl.op.create_attr()
Parameters
None
Return Values
| Return Value | Description |
|---|---|
| attr | Int, pointer address of aclopAttr type data. |