/**
 * Copyright (c) 2025 Huawei Technologies Co., Ltd.
 * This program is free software, you can redistribute it and/or modify it under the terms and conditions of
 * CANN Open Software License Agreement Version 2.0 (the "License").
 * Please refer to the License for details. You may not use this file except in compliance with the License.
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
 * INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
 * See LICENSE in the root of the software repository for the full text of the License.
 */

/*!
 * \file error_code.h
 * \brief
 */

#ifndef OP_COMMON_LOG_ERROR_CODE_H
#define OP_COMMON_LOG_ERROR_CODE_H

namespace Ops {
namespace Base {
// error code for report purpose.
// 30000~34999 for aicpu engine error
// and 35000~39999 for infershape error of aicpu op
enum ViewErrorCode {
    INVALID_INFER_SHAPE = 14001,
    INVALID_INPUT_SHAPE = 35000,
    INVALID_ATTR_VALUE = 35001,
    INVALID_ATTR_SIZE = 35002,
    OTHER_ERROR = 35003,
    AICPU_INFER_SHAPE_ERROR = 39999,
    INVALID_CONV_ATTR_VALUE = 50029,
    INVALID_CONV_SET_ATTR = 50057,
    INVALID_CONV_SHAPE = 50058,
    INVALID_MISS_INPUT = 70001,
    INVALID_INPUT_FORMAT = 70002,
    INVALID_INPUT_DTYPE = 70003,
    INVALID_INPUT_TYPE = 70004,
    INVALID_GET_ATTR = 70005,
    INVALID_SET_ATTR = 70006,
    INVALID_OPS_ATTR_VALUE = 70007,
    FAILED_UPDATE_OP = 70008,
    INVALID_SHAPE = 70009,
    INVALID_SHAPE_SIZE = 70010,
    INVALID_SHAPE_DIM = 70011,
    INVALID_BROADCAST_SHAPE = 70012,
    INVALID_TWO_INPUT_DTYPE = 70013,
    INVALID_AIPP_ERROR = 70014,
    INVALID_ONE_INPUT_SHAPE = 70015,
    INVALID_TWO_INPUT_SHAPE = 70016,
    INVALID_ONE_OUTPUT_SHAPE = 70017,
    FAILED_GET_COMPILIE_PARAMS = 70018,
    VECTOR_INNER_ERROR = 89999,
    CUBE_INNER_ERROR = 69999,
    CUBE_INNER_ERROR_PLUGIN = 59999
};
} // namespace Base
} // namespace Ops
#endif // OP_COMMON_LOG_ERROR_CODE_H