Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build warnings #126

Closed
wants to merge 1 commit into from
Closed
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
File renamed without changes.
3 changes: 2 additions & 1 deletion crates/openvino/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ impl Core {
Ok(devices)
}

/// Gets properties related to device behaviour for this core.
/// Gets properties related to device behavior for this core.
///
/// The method extracts information that can be set via the [`set_property`] method.
pub fn get_property(&self, device_name: &DeviceType, key: &PropertyKey) -> Result<String> {
let ov_device_name = cstr!(device_name.as_ref());
Expand Down
2 changes: 1 addition & 1 deletion crates/openvino/tests/classify-alexnet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ fn classify_alexnet() -> anyhow::Result<()> {
let mut infer_request = executable_model.create_infer_request()?;
infer_request.set_tensor("data", &tensor)?;
infer_request.infer()?;
let mut results = infer_request.get_tensor(&output_port.get_name()?)?;
let results = infer_request.get_tensor(&output_port.get_name()?)?;

// Sort results.
let buffer = results.get_data::<f32>()?.to_vec();
Expand Down
2 changes: 1 addition & 1 deletion crates/openvino/tests/classify-inception.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ fn classify_inception() -> anyhow::Result<()> {
let mut infer_request = executable_model.create_infer_request()?;
infer_request.set_tensor("input", &tensor)?;
infer_request.infer()?;
let mut results = infer_request.get_tensor(&output_port.get_name()?)?;
let results = infer_request.get_tensor(&output_port.get_name()?)?;

// Sort results.
let buffer = results.get_data::<f32>()?.to_vec();
Expand Down
2 changes: 1 addition & 1 deletion crates/openvino/tests/classify-mobilenet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ fn classify_mobilenet() -> anyhow::Result<()> {
let mut infer_request = executable_model.create_infer_request()?;
infer_request.set_tensor("input", &tensor)?;
infer_request.infer()?;
let mut results = infer_request.get_tensor(&output_port.get_name()?)?;
let results = infer_request.get_tensor(&output_port.get_name()?)?;

// Sort results. It is unclear why the MobileNet output indices are "off by one" but the
// `.skip(1)` below seems necessary to get results that make sense (e.g. 763 = "revolver" vs 762
Expand Down
Loading