24 #ifndef TVM_RUNTIME_CRT_ERROR_CODES_H_
25 #define TVM_RUNTIME_CRT_ERROR_CODES_H_
31 #define TVM_CRT_ERROR_CATEGORY_Pos 8
32 #define TVM_CRT_ERROR_CATEGORY_Msk (0xff << TVM_CRT_ERROR_CATEGORY_Pos)
33 #define TVM_CRT_ERROR_CODE_Pos 0
34 #define TVM_CRT_ERROR_CODE_Msk (0xff << TVM_CRT_ERROR_CODE_Pos)
36 #define DEFINE_TVM_CRT_ERROR(category, code) \
37 (((category) << TVM_CRT_ERROR_CATEGORY_Pos) | ((code) << TVM_CRT_ERROR_CODE_Pos))
#define DEFINE_TVM_CRT_ERROR(category, code)
Definition: error_codes.h:36
tvm_crt_error_t
Definition: error_codes.h:50
@ kTvmErrorFunctionNameNotFound
Definition: error_codes.h:54
@ kTvmErrorFramingShortPacket
Definition: error_codes.h:62
@ kTvmErrorPlatformTimerBadState
Definition: error_codes.h:81
@ kTvmErrorSessionInvalidState
Definition: error_codes.h:72
@ kTvmErrorExecutorModuleBadContext
Definition: error_codes.h:89
@ kTvmErrorBufferTooSmall
Definition: error_codes.h:58
@ kTvmErrorSessionReceiveBufferShortWrite
Definition: error_codes.h:74
@ kTvmErrorFramingPayloadIncomplete
Definition: error_codes.h:65
@ kTvmErrorPlatformNoMemory
Definition: error_codes.h:80
@ kTvmErrorExecutorModuleNoSuchInput
Definition: error_codes.h:90
@ kTvmErrorWriteStreamShortWrite
Definition: error_codes.h:68
@ kTvmErrorTimeEvaluatorBadHandle
Definition: error_codes.h:99
@ kTvmErrorFunctionCallNotImplemented
Definition: error_codes.h:95
@ kTvmErrorFunctionAlreadyDefined
Definition: error_codes.h:57
@ kTvmErrorFunctionCallWrongArgType
Definition: error_codes.h:94
@ kTvmErrorPlatformMemoryManagerInitialized
Definition: error_codes.h:78
@ kTvmErrorFramingPayloadOverflow
Definition: error_codes.h:64
@ kTvmErrorFunctionIndexInvalid
Definition: error_codes.h:55
@ kTvmErrorGeneratedInvalidStorageId
Definition: error_codes.h:85
@ kTvmErrorSystemErrorMask
Definition: error_codes.h:103
@ kTvmErrorFunctionRegistryFull
Definition: error_codes.h:56
@ kTvmErrorPlatformStackAllocBadFree
Definition: error_codes.h:82
@ kTvmErrorFunctionCallNumArguments
Definition: error_codes.h:93
@ kTvmErrorFramingInvalidEscape
Definition: error_codes.h:63
@ kTvmErrorPlatformCheckFailure
Definition: error_codes.h:77
@ kTvmErrorPlatformShutdown
Definition: error_codes.h:79
@ kTvmErrorSessionReceiveBufferBusy
Definition: error_codes.h:73
@ kTvmErrorFunctionCallInvalidArg
Definition: error_codes.h:96
@ kTvmErrorNoError
Definition: error_codes.h:51
@ kTvmErrorExecutorModuleAlreadyCreated
Definition: error_codes.h:88
@ kTvmErrorFramingInvalidState
Definition: error_codes.h:61
@ kTvmErrorWriteStreamLongWrite
Definition: error_codes.h:69
tvm_crt_error_category_t
Definition: error_codes.h:38
@ kTvmErrorCategoryPlatform
Definition: error_codes.h:43
@ kTvmErrorCategoryFunctionRegistry
Definition: error_codes.h:39
@ kTvmErrorCategorySession
Definition: error_codes.h:42
@ kTvmErrorCategoryWriteStream
Definition: error_codes.h:41
@ kTvmErrorCategoryTimeEvaluator
Definition: error_codes.h:47
@ kTvmErrorCategoryFunctionCall
Definition: error_codes.h:46
@ kTvmErrorCategoryExecutor
Definition: error_codes.h:45
@ kTvmErrorCategoryGenerated
Definition: error_codes.h:44
@ kTvmErrorCategoryFraming
Definition: error_codes.h:40