Replace Objective-C bridge with Swift ONNX runtime backend
CodeQL Advanced / Analyze (swift) (push) Has been cancelled

This commit is contained in:
2026-06-09 09:38:43 -04:00
parent b7fb7f7dea
commit 2af97cc6bf
8 changed files with 1648 additions and 124 deletions
+21
View File
@@ -0,0 +1,21 @@
import Foundation
public enum ORTError: Error, LocalizedError {
case notImplemented(String)
case runtimeFailure(action: String, message: String)
case invalidArgument(String)
case unsupported(String)
public var errorDescription: String? {
switch self {
case .notImplemented(let symbol):
return "ONNX Runtime Swift interface symbol is not implemented yet: \(symbol)"
case .runtimeFailure(let action, let message):
return "\(action) failed: \(message)"
case .invalidArgument(let message):
return message
case .unsupported(let message):
return message
}
}
}