openharmony 鸿蒙 capi-status-h

2026-08-25 浏览 (1)

status.h

Overview

Provides the status codes of MindSpore Lite.

File to include: <mindspore/status.h>

Library: libmindspore_lite_ndk.so

System capability: SystemCapability.Ai.MindSpore

Since: 9

Related module: MindSpore

Summary

Enums

Nametypedef KeywordDescription
OH_AI_CompCode-Defines MindSpore component codes.
OH_AI_StatusOH_AI_StatusDefines MindSpore status codes.

Enum Description

OH_AI_CompCode

enum OH_AI_CompCode

Description

Defines MindSpore component codes.

Since: 9

Enum ItemDescription
OH_AI_COMPCODE_CORE = 0x00000000uMindSpore Core code.
OH_AI_COMPCODE_MD = 0x10000000uMindSpore MindData code.
OH_AI_COMPCODE_ME = 0x20000000uMindSpore MindExpression code.
OH_AI_COMPCODE_MC = 0x30000000uMindSpore code.
OH_AI_COMPCODE_LITE = 0xF0000000uMindSpore Lite code.

OH_AI_Status

enum OH_AI_Status

Description

Defines MindSpore status codes.

Since: 9

Enum ItemDescription
OH_AI_STATUS_SUCCESS = 0The operation is successful.
OH_AI_STATUS_CORE_FAILED = OH_AI_COMPCODE_CORE |0x1MindSpore Core execution failure.
OH_AI_STATUS_LITE_ERROR = OH_AI_COMPCODE_LITE |(0x0FFFFFFF & -1)MindSpore Lite execution is abnormal.
OH_AI_STATUS_LITE_NULLPTR = OH_AI_COMPCODE_LITE |(0x0FFFFFFF & -2)The null pointer of MindSpore Lite is abnormal.
OH_AI_STATUS_LITE_PARAM_INVALID = OH_AI_COMPCODE_LITE |(0x0FFFFFFF & -3)The parameter of MindSpore Lite is abnormal.
OH_AI_STATUS_LITE_NO_CHANGE = OH_AI_COMPCODE_LITE |(0x0FFFFFFF & -4)MindSpore Lite is not changed.
OH_AI_STATUS_LITE_SUCCESS_EXIT = OH_AI_COMPCODE_LITE |(0x0FFFFFFF & -5)MindSpore Lite is normal but exits.
OH_AI_STATUS_LITE_MEMORY_FAILED = OH_AI_COMPCODE_LITE |(0x0FFFFFFF & -6)MindSpore Lite fails to allocate memory.
OH_AI_STATUS_LITE_NOT_SUPPORT = OH_AI_COMPCODE_LITE |(0x0FFFFFFF & -7)MindSpore Lite does not support the feature.
OH_AI_STATUS_LITE_THREADPOOL_ERROR = OH_AI_COMPCODE_LITE |(0x0FFFFFFF & -8)The thread pool of MindSpore Lite is abnormal.
OH_AI_STATUS_LITE_UNINITIALIZED_OBJ = OH_AI_COMPCODE_LITE |(0x0FFFFFFF & -9)MindSpore Lite uninitialized.
OH_AI_STATUS_LITE_OUT_OF_TENSOR_RANGE = OH_AI_COMPCODE_LITE |(0x0FFFFFFF & -100)Executor-related error code. The value range is (-200, -100].
MindSpore Lite tensor overflow error.
OH_AI_STATUS_LITE_INPUT_TENSOR_ERROR = OH_AI_COMPCODE_LITE |(0x0FFFFFFF & -101)Executor-related error code. The value range is (-200, -100].
MindSpore Lite tensor input error.
OH_AI_STATUS_LITE_REENTRANT_ERROR = OH_AI_COMPCODE_LITE |(0x0FFFFFFF & -102)Executor-related error code. The value range is (-200, -100].
MindSpore Lite function re-entry error.
OH_AI_STATUS_LITE_GRAPH_FILE_ERROR = OH_AI_COMPCODE_LITE |(0x0FFFFFFF & -200)Graph-related error code. The value range is (-300, -200].
MindSpore Lite graph file error.
OH_AI_STATUS_LITE_NOT_FIND_OP = OH_AI_COMPCODE_LITE |(0x0FFFFFFF & -300)Operator-related error code. The value range is (-400, -300].
MindSpore Lite does not find the operator.
OH_AI_STATUS_LITE_INVALID_OP_NAME = OH_AI_COMPCODE_LITE |(0x0FFFFFFF & -301)Operator-related error code. The value range is (-400, -300].
The operator of MindSpore Lite is invalid.
OH_AI_STATUS_LITE_INVALID_OP_ATTR = OH_AI_COMPCODE_LITE |(0x0FFFFFFF & -302)Operator-related error code. The value range is (-400, -300].
The operator of MindSpore Lite has an invalid hyperparameter.
OH_AI_STATUS_LITE_OP_EXECUTE_FAILURE = OH_AI_COMPCODE_LITE |(0x0FFFFFFF & -303)Operator-related error code. The value range is (-400, -300].
The operator of MindSpore Lite fails to be executed.
OH_AI_STATUS_LITE_FORMAT_ERROR = OH_AI_COMPCODE_LITE |(0x0FFFFFFF & -400)Tensor-related error code. The value range is (-500, -400].
MindSpore Lite tensor format error.
OH_AI_STATUS_LITE_INFER_ERROR = OH_AI_COMPCODE_LITE |(0x0FFFFFFF & -500)Shape inference-related error code. The value range is (-600, -500].
MindSpore Lite shape inference error.
OH_AI_STATUS_LITE_INFER_INVALID = OH_AI_COMPCODE_LITE |(0x0FFFFFFF & -501)Shape inference-related error code. The value range is (-600, -500].
Invalid shape inference of MindSpore Lite.
OH_AI_STATUS_LITE_INPUT_PARAM_INVALID = OH_AI_COMPCODE_LITE |(0x0FFFFFFF & -600)User input-related error code. The value range is (-700, -600].
Invalid user input.
OH_AI_STATUS_LITE_AIPP_NOT_SUPPORTED = OH_AI_COMPCODE_LITE |(0x0FFFFFFF & -700)Error code related to AI Pre-Process (AIPP). The value range is (-800, -700].
MindSpore Lite does not support AIPP.
Since: 23
OH_AI_STATUS_LITE_AIPP_INFER_ERROR = OH_AI_COMPCODE_LITE |(0x0FFFFFFF & -701)Error code related to AI Pre-Process (AIPP). The value range is (-800, -700].
MindSpore Lite fails to use AIPP for inference.
Since: 23

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 capi-format-h

openharmony 鸿蒙 capi-tensor-h

openharmony 鸿蒙 capi-context-h

openharmony 鸿蒙 capi-mindspore-oh-ai-callbackparam

openharmony 鸿蒙 capi-mindspore-oh-ai-shapeinfo

openharmony 鸿蒙 capi-mindspore-oh-ai-contexthandle

openharmony 鸿蒙 capi-mindspore-oh-ai-traincfghandle

openharmony 鸿蒙 capi-mindspore-oh-ai-allocatorhandle

openharmony 鸿蒙 js-apis-mindSporeLite

openharmony 鸿蒙 capi-mindspore-oh-ai-tensorHandle

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/riSg7RkY