Expand description
The openvino crate provides high-level, ergonomic, safe Rust bindings to OpenVINO. See the repository README for more information, such as build instructions.
Check the loaded version of OpenVINO:
assert!(openvino::version().build_number.starts_with("2"))Most interaction with OpenVINO begins with instantiating a Core:
let _ = openvino::Core::new().expect("to instantiate the OpenVINO library");Modules§
Structs§
- Compiled
Model - See
ov_compiled_model_t. - Core
- See
ov_core_t. - Dimension
- See
ov_dimension_t. - Infer
Request - See
ov_infer_request_t. - Layout
- See
ov_layout_t. - Model
- See
ov_model_t. - Node
- See
ov_node_c_api. - Partial
Shape - See
ov_partial_shape_t. - Rank
- See
ov_rank_t. - Shape
- See
ov_shape_t. - Tensor
- See
ov_tensor_t. - Version
- See
ov_version.
Enums§
- Device
Type DeviceTyperepresents accelerator devices.- Element
Type - See
ov_element_type_e. - Inference
Error - See
ov_status_e; enumerates errors returned by the OpenVINO implementation. - Loading
Error - Enumerate the ways that library loading can fail.
- Property
Key - See
ov_property_c_api.PropertyKeyrepresents valid configuration properties for acrate::Coreinstance. - Resize
Algorithm - Interpolation mode when resizing during preprocess steps.
- RwProperty
Key - Read-write property keys.
- Setup
Error - Enumerate setup failures: in some cases, this library will call library-loading code that may
fail in a different way (i.e.,
LoadingError) than the calls to the OpenVINO libraries (i.e.,InferenceError).
Functions§
- version
- Emit the version of the OpenVINO C library backing this implementation.