---
title: AOE API错误码
description: "AOE API错误码的定义在头文件\"CANN软件安装目录/cann/include/aoe/external/aoe_errcodes.h\"中。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/devaids/aoe/aoeref_16_0018.html
sourcePath: /source/zh/canncommercial/900/devaids/aoe/aoeref_16_0018.html
indexId: 6117206ca33e2ede418634efc778f01dc83dbb0dc5d431f6524e65f33bf9210961
---
# AOE API错误码

AOE API错误码的定义在头文件"CANN软件安装目录/cann/include/aoe/external/aoe_errcodes.h"中。


**表1 AOE API错误码**

| 名称 | 取值 | 含义 |
| --- | --- | --- |
| AOE\_FAILURE | \-1 | 通用AOE错误 |
| AOE\_SUCCESS | 0 | 成功 |
| AOE\_ERROR\_MEMORY\_ALLOC | 1 | 内存分配失败 |
| AOE\_ERROR\_INVALID\_PARAM | 2 | 非法参数 |
| AOE\_ERROR\_UNINITIALIZED | 3 | API未初始化 |
| AOE\_ERROR\_REPEAT\_INITIALIZE | 4 | API重复初始化 |
| AOE\_ERROR\_INVALID\_SESSION | 5 | 非法的sessionID |
| AOE\_ERROR\_BUSY | 6 | 多线程调用阻塞 |
| AOE\_ERROR\_INVALID\_GRAPH | 7 | 非法的调优图 |
| AOE\_ERROR\_NON\_OPTIMIZE\_GRAPH | 8 | 无调优图 |
| AOE\_ERROR\_DYNAMIC\_GRAPH | 9 | 调优业务不支持动态图 |
| AOE\_ERROR\_DYNAMIC\_SHAPE\_RANGE | 10 | 动态shape（算子调优） |
| AOE\_ERROR\_INVALID\_OPTION\_ATTR | 11 | option属性错误 |
| AOE\_ERROR\_NON\_OPTIMIZABLE\_OBJECT | 12 | 无可调优的对象 |
| AOE\_ERROR\_TUNING\_ERROR | 100 | 其他调优错误 |
