tryLoadDefault static method
Attempts to load ONNX Runtime from default locations.
Searches in:
- Current directory
- System library paths
- Common installation locations
Implementation
static OnnxFfi? tryLoadDefault() {
final paths = _getDefaultLibraryPaths();
for (final path in paths) {
try {
return load(path);
} on OnnxLoadException {
// Try next path
continue;
}
}
return null;
}