Function: get_cann_attribute

Description

Queries whether the operating environment supports the specified CANN feature.

Prototype

  • C Prototype
    1
    aclError aclGetCannAttribute(aclCannAttr cannAttr, int32_t *value)
    
  • Python Function
    1
    value, 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.

  • 1: supported
  • 0: not supported

ret

Int, error code. 0 on success; else, failure.