Function: get_cann_attribute
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
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)
Parameter Description
Parameter |
Description |
|---|---|
cann_attr |
Int, the enumerated value of the feature list. One item can be specified for each query. For details, see aclCannAttr. |
Return Value Description
Return Value |
Description |
|---|---|
value |
Int, whether the function is supported.
|
ret |
Int, error code: 0 on success; else, failure. |
Parent topic: System Configuration