@@ -19,30 +19,34 @@ FOUNDATION_EXPORT NSErrorDomain const ExecuTorchErrorDomain NS_SWIFT_NAME(ErrorD
19
19
*/
20
20
typedef NS_ERROR_ENUM (ExecuTorchErrorDomain, ExecuTorchErrorCode) {
21
21
// System errors.
22
- ExecuTorchErrorCodeOk = 0 ,
23
- ExecuTorchErrorCodeInternal = 1 ,
24
- ExecuTorchErrorCodeInvalidState = 2 ,
25
- ExecuTorchErrorCodeEndOfMethod = 3 ,
22
+ ExecuTorchErrorCodeOk = 0 ,
23
+ ExecuTorchErrorCodeInternal = 1 ,
24
+ ExecuTorchErrorCodeInvalidState = 2 ,
25
+ ExecuTorchErrorCodeEndOfMethod = 3 ,
26
26
27
27
// Logical errors.
28
- ExecuTorchErrorCodeNotSupported = 16 ,
29
- ExecuTorchErrorCodeNotImplemented = 17 ,
30
- ExecuTorchErrorCodeInvalidArgument = 18 ,
31
- ExecuTorchErrorCodeInvalidType = 19 ,
32
- ExecuTorchErrorCodeOperatorMissing = 20 ,
28
+ ExecuTorchErrorCodeNotSupported = 16 ,
29
+ ExecuTorchErrorCodeNotImplemented = 17 ,
30
+ ExecuTorchErrorCodeInvalidArgument = 18 ,
31
+ ExecuTorchErrorCodeInvalidType = 19 ,
32
+ ExecuTorchErrorCodeOperatorMissing = 20 ,
33
+
34
+ // Registration errors.
35
+ ExecuTorchErrorCodeRegistrationExceedingMaxKernels = 21 ,
36
+ ExecuTorchErrorCodeRegistrationAlreadyRegistered = 22 ,
33
37
34
38
// Resource errors.
35
- ExecuTorchErrorCodeNotFound = 32 ,
36
- ExecuTorchErrorCodeMemoryAllocationFailed = 33 ,
37
- ExecuTorchErrorCodeAccessFailed = 34 ,
38
- ExecuTorchErrorCodeInvalidProgram = 35 ,
39
- ExecuTorchErrorCodeInvalidExternalData = 36 ,
40
- ExecuTorchErrorCodeOutOfResources = 37 ,
39
+ ExecuTorchErrorCodeNotFound = 32 ,
40
+ ExecuTorchErrorCodeMemoryAllocationFailed = 33 ,
41
+ ExecuTorchErrorCodeAccessFailed = 34 ,
42
+ ExecuTorchErrorCodeInvalidProgram = 35 ,
43
+ ExecuTorchErrorCodeInvalidExternalData = 36 ,
44
+ ExecuTorchErrorCodeOutOfResources = 37 ,
41
45
42
46
// Delegate errors.
43
- ExecuTorchErrorCodeDelegateInvalidCompatibility = 48 ,
44
- ExecuTorchErrorCodeDelegateMemoryAllocationFailed = 49 ,
45
- ExecuTorchErrorCodeDelegateInvalidHandle = 50 ,
47
+ ExecuTorchErrorCodeDelegateInvalidCompatibility = 48 ,
48
+ ExecuTorchErrorCodeDelegateMemoryAllocationFailed = 49 ,
49
+ ExecuTorchErrorCodeDelegateInvalidHandle = 50 ,
46
50
} NS_SWIFT_NAME(ErrorCode);
47
51
48
52
/* *
0 commit comments