• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**
2  * Copyright (c) 2022-2022 Huawei Technologies Co., Ltd.  All rights reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 /*!
18  * \file error_code.h
19  * \brief
20  */
21 #ifndef CUSTOMIZE_OP_PROTO_UTILS_ERROR_CODE_H_
22 #define CUSTOMIZE_OP_PROTO_UTILS_ERROR_CODE_H_
23 
24 namespace ge {
25 // error code for report purpose.
26 // 30000~34999 for aicpu engine error
27 // and 35000~39999 for infershape error of aicpu op
28 enum ViewErrorCode {
29   INVALID_INFER_SHAPE = 14001,
30   INVALID_INPUT_SHAPE = 35000,
31   INVALID_ATTR_VALUE = 35001,
32   INVALID_ATTR_SIZE = 35002,
33   OTHER_ERROR = 35003,
34   AICPU_INFER_SHAPE_ERROR = 39999,
35   INVALID_CONV_ATTR_VALUE = 50029,
36   INVALID_CONV_SET_ATTR = 50057,
37   INVALID_CONV_SHAPE = 50058,
38   INVALID_MISS_INPUT = 70001,
39   INVALID_INPUT_FORMAT = 70002,
40   INVALID_INPUT_DTYPE = 70003,
41   INVALID_INPUT_TYPE = 70004,
42   INVALID_GET_ATTR = 70005,
43   INVALID_SET_ATTR = 70006,
44   INVALID_OPS_ATTR_VALUE = 70007,
45   FAILED_UPDATE_OP = 70008,
46   INVALID_SHAPE = 70009,
47   INVALID_SHAPE_SIZE = 70010,
48   INVALID_SHAPE_DIM = 70011,
49   INVALID_BROADCAST_SHAPE = 70012,
50   INVALID_TWO_INPUT_DTYPE = 70013,
51   INVALID_AIPP_ERROR = 70014,
52   INVALID_ONE_INPUT_SHAPE = 70015,
53   INVALID_TWO_INPUT_SHAPE = 70016,
54   INVALID_ONE_OUTPUT_SHAPE = 70017,
55   FAILED_GET_COMPILIE_PARAMS = 70018,
56   VECTOR_INNER_ERROR = 89999,
57   CUBE_INNER_ERROR = 69999,
58   CUBE_INNER_ERROR_PLUGIN = 59999
59 };
60 }  // namespace ge
61 
62 #endif  // CUSTOMIZE_OP_PROTO_UTILS_ERROR_CODE_H_
63