Function: get_cann_attribute
Description
Queries whether the operating environment supports the specified CANN feature.
Prototype
- C Prototype
1aclError aclGetCannAttribute(aclCannAttr cannAttr, int32_t *value)
- Python Function
1value, ret = acl.get_cann_attribute(cann_attr)
Parameters
Parameter |
Description |
|---|---|
cann_attr |
Int, enumerated values of the feature list. You can specify one item at a time. For details, see aclCannAttr. |
Return Value
Return Value |
Description |
|---|---|
value |
Int, whether the function is supported.
|
ret |
Int, error code. 0 on success; else, failure. |
Parent topic: Other APIs