35 lines
619 B
C++
35 lines
619 B
C++
//
|
|
// ErrorCode.hpp
|
|
// MNN
|
|
//
|
|
// Created by MNN on 2018/09/18.
|
|
// Copyright © 2018, Alibaba Group Holding Limited
|
|
//
|
|
|
|
#ifndef ErrorCode_h
|
|
#define ErrorCode_h
|
|
|
|
namespace MNN {
|
|
enum ErrorCode {
|
|
#ifdef NO_ERROR
|
|
#undef NO_ERROR
|
|
#endif // NO_ERROR
|
|
NO_ERROR = 0,
|
|
OUT_OF_MEMORY = 1,
|
|
NOT_SUPPORT = 2,
|
|
COMPUTE_SIZE_ERROR = 3,
|
|
NO_EXECUTION = 4,
|
|
INVALID_VALUE = 5,
|
|
|
|
// User error
|
|
INPUT_DATA_ERROR = 10,
|
|
CALL_BACK_STOP = 11,
|
|
|
|
// Op Resize Error
|
|
TENSOR_NOT_SUPPORT = 20,
|
|
TENSOR_NEED_DIVIDE = 21,
|
|
};
|
|
} // namespace MNN
|
|
|
|
#endif /* ErrorCode_h */
|