[object Object][object Object]

To make it easier to call operators, a set of C-based APIs (with the aclnn prefix) are provided. You do not need to provide the Intermediate Representation (IR) definition to facilitate efficient model and application development. This method is called single-operator API calling, or aclnn calling for short.

When calling operator APIs, you need to reference the dependency header file and library file. Generally, the header file is stored in INSTALLDIR/include/aclnnopandthelibraryfileisstoredin{INSTALL_DIR}/include/aclnnop and the library file is stored in{INSTALL_DIR}/lib64.

  • Header file: 1. Method 1 (recommended): Reference the general header file aclnn_ops_${ops_project}.h of the operator repository. 2. Method 2: Reference the header file aclnn_*.h of a single operator API.
  • Library file: The library file libopapi_${ops_project}.so corresponding to the operator repository is referenced. Note that the original operator repository file libopapi.so will be deprecated and is not recommended. It cannot be used together with a single operator repository file.

${INSTALL_DIR} indicates the file path after CANN installation. ${ops_project} indicates the operator repository name (such as math, nn, cv, and transformer). Change it to the actual operator repository name.

[object Object]
[object Object]

The following table lists the operator APIs.

[object Object]undefined