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