openvino - Rust (original) (raw)

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");

prepostprocess

Seeov_prepostprocess_c_api.

CompiledModel

Seeov_compiled_model_t.

Core

See ov_core_t.

Dimension

Seeov_dimension_t.

InferRequest

Seeov_infer_request_t.

Layout

See ov_layout_t.

Model

See ov_model_t.

Node

See ov_node_c_api.

PartialShape

Seeov_partial_shape_t.

Rank

See ov_rank_t.

Shape

See ov_shape_t.

Tensor

See ov_tensor_t.

Version

See ov_version.

DeviceType

DeviceType represents accelerator devices.

ElementType

Seeov_element_type_e.

InferenceError

Seeov_status_e; enumerates errors returned by the OpenVINO implementation.

LoadingError

Enumerate the ways that library loading can fail.

PropertyKey

Seeov_property_c_api.PropertyKey represents valid configuration properties for a crate::Core instance.

ResizeAlgorithm

Interpolation mode when resizing during preprocess steps.

RwPropertyKey

Read-write property keys.

SetupError

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).

version

Emit the version of the OpenVINO C library backing this implementation.