Function: get_cann_attribute
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
Queries whether the operating environment supports the specified CANN feature.
Prototype
-
C Prototype
aclError aclGetCannAttribute(aclCannAttr cannAttr, int32_t *value) -
Python Function
value, ret = acl.get_cann_attribute(cann_attr)
Parameters
| Parameter | Description |
|---|---|
| cann_attr | Int, enumerated value of the feature list. You can specify one item for a query. For details, see aclCannAttr. |
Return Values
| Return Value | Description |
|---|---|
| value | Int, whether the function is supported.1: yes0: no |
| ret | Int, error code. If 0 is returned, the operation is successful. If other values are returned, the operation fails. |