Common API Return Codes

The following table describes the common return codes. To obtain error messages, call the aclGetRecentErrMsg API. You can rectify faults based on the error messages or contact technical support.

Table 1 Return codes

Return Code

Value

Description

ACLNN_SUCCESS

0

Success

ACLNN_ERR_PARAM_NULLPTR

161001

Parameter verification error. Parameters contain null pointers, which are invalid.

ACLNN_ERR_PARAM_INVALID

161002

Parameter verification error. For example, the two input data types do not meet the data type deduction requirements.

ACLNN_ERR_RUNTIME_ERROR

361001

A memory error occurs when the NPU Runtime API is called.

ACLNN_ERR_INNER_XXX

561xxx

Internal API exception. Common cases are:

  • 561101 (ACLNN_ERR_INNER_CREATE_EXECUTOR): The API fails to create aclOpExecutor. (Possible cause: OS exception).
  • 561102 (ACLNN_ERR_INNER_NOT_TRANS_EXECUTOR): The API does not call uniqueExecutor ReleaseTo.
  • 561103 (ACLNN_ERR_INNER_NULLPTR): A null pointer occurs in the aclnn API.