Skip to content

Conversation

abrown
Copy link
Contributor

@abrown abrown commented Apr 26, 2021

While integrating with external libraries, the changes in this PR became apparent:

  • I needed a way to turn on the runtime-linking feature when openvino was imported as a Cargo dependency
  • and I needed a way to return errors instead of panicking when library loading fails.

abrown added 3 commits April 26, 2021 11:05
This makes it easier to use the runtime linking feature directly from an `openvino` dependency:
```
openvino = { version = "...", features = ["runtime-linking"] }
```
This refactoring changes the public API of the `openvino` crate to add a new error type, `LoadingError`, as well as a wrapper type, `SetupError`, to disambiguate between that and `InferenceError`. The `Core::new` function changes to return the wrapper, `SetupError`, since it could fail while loading the OpenVINO shared libraries.
@abrown abrown merged commit 53d9805 into intel:main Apr 26, 2021
@abrown abrown deleted the runtime-linking branch April 26, 2021 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant