aclnn 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

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

API inner error. Possible causes are listed in Table 2.

Table 2 Exception codes

Code

Value

Description

ACLNN_ERR_INNER

561000

An inner error occurs in the API.

ACLNN_ERR_INNER_INFERSHAPE_ERROR

561001

An inner error occurs when the API infers the output shape.

ACLNN_ERR_INNER_TILING_ERROR

561002

An inner error occurs when the API performs tiling on the NPU kernel.

ACLNN_ERR_INNER_FIND_KERNEL_ERROR

561003

An inner error occurs when the API searches for the NPU kernel. (Possible cause: The operator binary package is not installed.)

ACLNN_ERR_INNER_CREATE_EXECUTOR

561101

The API internally fails to create aclOpExecutor. (Possible cause: OS exception)

ACLNN_ERR_INNER_NOT_TRANS_EXECUTOR

561102

The API internally does not call uniqueExecutor ReleaseTo.

ACLNN_ERR_INNER_NULLPTR

561103

An inner error occurs in the aclnn API: null pointer.

ACLNN_ERR_INNER_WRONG_ATTR_INFO_SIZE

561104

An inner error occurs in the aclnn API: abnormal operator attribute count.

ACLNN_ERR_INNER_KEY_CONFLICT

561105

An inner error occurs in the aclnn API: hash key conflict in the operator kernel matching.

ACLNN_ERR_INNER_KEY_CONFILICT

561105

Deprecated. Use the latest ACLNN_ERR_INNER_KEY_CONFLICT.

ACLNN_ERR_INNER_INVALID_IMPL_MODE

561106

An inner error occurs in the aclnn API: incorrect operator implementation mode parameter.

ACLNN_ERR_INNER_OPP_PATH_NOT_FOUND

561107

An inner error occurs in the aclnn API: environment variable ASCEND_OPP_PATH not found.

ACLNN_ERR_INNER_LOAD_JSON_FAILED

561108

An inner error occurs in the aclnn API: failed loading of the operator information JSON file in the operator kernel library.

ACLNN_ERR_INNER_JSON_VALUE_NOT_FOUND

561109

An inner error occurs in the aclnn API: failed loading of a field in the operator information JSON file in the operator kernel library.

ACLNN_ERR_INNER_JSON_FORMAT_INVALID

561110

An inner error occurs in the aclnn API: invalid format in the operator information JSON file in the operator kernel library.

ACLNN_ERR_INNER_JSON_DTYPE_INVALID

561111

An inner error occurs in the aclnn API: invalid dtype in the operator information JSON file in the operator kernel library.

ACLNN_ERR_INNER_OPP_KERNEL_PKG_NOT_FOUND

561112

An inner error occurs in the aclnn API: operator binary kernel library not loaded.

ACLNN_ERR_INNER_OP_FILE_INVALID

561113

An inner error occurs in the aclnn API when loading the operator JSON file.

ACLNN_ERR_INNER_ATTR_NUM_OUT_OF_BOUND

561114

An inner error occurs in the aclnn API: operator attribute count inconsistent with that in the operator information JSON file, and exceeding the attr count specified in the JSON file.

ACLNN_ERR_INNER_ATTR_LEN_NOT_ENOUGH

561115

An inner error occurs in the aclnn API: operator attribute count inconsistent with that in the operator information JSON file, and less than the attr count specified in the JSON file.

ACLNN_ERR_INNER_INPUT_NUM_IN_JSON_TOO_LARGE

561116

An aclnn API inner error occurs where the operator input count exceeds the upper limit of 32.

ACLNN_ERR_INNER_INPUT_JSON_IS_NULL

561117

An aclnn API inner error occurs where the operator information JSON file is missing.

ACLNN_ERR_INNER_STATIC_WORKSPACE_INVALID

561118

An aclnn API inner error occurs when parsing the workspace information in the static binary JSON file.

ACLNN_ERR_INNER_STATIC_BLOCK_DIM_INVALID

561119

An aclnn API inner error occurs when parsing the core use data in the static binary JSON file.