Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ jobs:
# found ("dyld: Library not loaded; '@rpath/libopenvino.2310.dylib'"). See
# https://github.com/abrown/openvino-rs/actions/runs/6423141936/job/17441022932#step:7:154
os: [ubuntu-22.04, ubuntu-24.04, windows-latest]
version: [2025.1.0]
version: [2025.1.0, 2025.2.0]
apt: [false]
# We also spot-check that things work when installing from APT by adding to the matrix: see
# https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations
# APT install and check latest supported version.
include:
- os: ubuntu-24.04
version: 2025.1.0
version: 2025.2.0
apt: true
env:
RUST_LOG: debug
Expand Down
24 changes: 24 additions & 0 deletions crates/openvino-sys/src/generated/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,15 @@ unsafe extern "C" {
#[doc = " @brief Set new shape for tensor, deallocate/allocate if new total size is bigger than previous one.\n @ingroup ov_tensor_c_api\n @param shape Tensor shape\n @param tensor A point to ov_tensor_t\n @return Status code of the operation: OK(0) for success."]
pub fn ov_tensor_set_shape(tensor: *mut ov_tensor_t, shape: ov_shape_t) -> ov_status_e;
}
unsafe extern "C" {
#[doc = " @brief Constructs a new tensor using a string array.\n @ingroup ov_tensor_c_api\n @param string_array An array of strings\n @param array_size The size of the string array\n @param shape Tensor shape\n @param tensor A point to ov_tensor_t\n @return Status code of the operation: OK(0) for success."]
pub fn ov_tensor_create_from_string_array(
string_array: *mut *const ::std::os::raw::c_char,
array_size: usize,
shape: ov_shape_t,
tensor: *mut *mut ov_tensor_t,
) -> ov_status_e;
}
unsafe extern "C" {
#[doc = " @brief Get shape for tensor.\n @ingroup ov_tensor_c_api\n @param shape Tensor shape\n @param tensor A point to ov_tensor_t\n @return Status code of the operation: OK(0) for success."]
pub fn ov_tensor_get_shape(tensor: *const ov_tensor_t, shape: *mut ov_shape_t) -> ov_status_e;
Expand All @@ -175,6 +184,14 @@ unsafe extern "C" {
type_: *mut ov_element_type_e,
) -> ov_status_e;
}
unsafe extern "C" {
#[doc = " @brief Set string data for tensor\n @ingroup ov_tensor_c_api\n @param string_array Array of strings\n @param array_size Size of the array\n @param tensor A point to ov_tensor_t"]
pub fn ov_tensor_set_string_data(
tensor: *mut ov_tensor_t,
string_array: *mut *const ::std::os::raw::c_char,
array_size: usize,
) -> ov_status_e;
}
unsafe extern "C" {
#[doc = " @brief the total number of elements (a product of all the dims or 1 for scalar).\n @ingroup ov_tensor_c_api\n @param elements_size number of elements\n @param tensor A point to ov_tensor_t\n @return Status code of the operation: OK(0) for success."]
pub fn ov_tensor_get_size(tensor: *const ov_tensor_t, elements_size: *mut usize)
Expand Down Expand Up @@ -750,6 +767,13 @@ unsafe extern "C" {
...
) -> ov_status_e;
}
unsafe extern "C" {
#[doc = " @brief Adds an extension to the core.\n @ingroup ov_core_c_api\n @param core A pointer to the ov_core_t instance.\n @param path Path to the extension.\n @return Status code of the operation: OK(0) for success."]
pub fn ov_core_add_extension(
core: *const ov_core_t,
path: *const ::std::os::raw::c_char,
) -> ov_status_e;
}
unsafe extern "C" {
#[doc = " @brief Reads a model and creates a compiled model from the IR/ONNX/PDPD file.\n This can be more efficient than using the ov_core_read_model_from_XXX + ov_core_compile_model flow,\n especially for cases when caching is enabled and a cached model is available.\n @ingroup ov_core_c_api\n @param core A pointer to the ov_core_t instance.\n @param model_path Path to a model.\n @param device_name Name of a device to load a model to.\n @param property_args_size How many properties args will be passed, each property contains 2 args: key and value.\n @param compiled_model A pointer to the newly created compiled_model.\n @param ... Optional pack of pairs: <char* property_key, char* property_value> relevant only\n for this load operation operation. Supported property key please see ov_property.h.\n @return Status code of the operation: OK(0) for success."]
pub fn ov_core_compile_model_from_file_unicode(
Expand Down
2 changes: 1 addition & 1 deletion crates/openvino-sys/upstream
Submodule upstream updated 3710 files
Loading