pub struct CompiledModel { /* private fields */ }
Expand description
See
ov_compiled_model_t
.
Implementations§
Source§impl CompiledModel
impl CompiledModel
Sourcepub fn create_infer_request(&mut self) -> Result<InferRequest, InferenceError>
pub fn create_infer_request(&mut self) -> Result<InferRequest, InferenceError>
Create an InferRequest
.
Sourcepub fn get_input_size(&self) -> Result<usize, InferenceError>
pub fn get_input_size(&self) -> Result<usize, InferenceError>
Get the number of inputs of the compiled model.
Sourcepub fn get_input(&self) -> Result<Node, InferenceError>
pub fn get_input(&self) -> Result<Node, InferenceError>
Get the single input port of the compiled model, which we expect to have only one input.
Sourcepub fn get_input_by_index(&self, index: usize) -> Result<Node, InferenceError>
pub fn get_input_by_index(&self, index: usize) -> Result<Node, InferenceError>
Get an input port of the compiled model by port index.
Sourcepub fn get_input_by_name(&self, name: &str) -> Result<Node, InferenceError>
pub fn get_input_by_name(&self, name: &str) -> Result<Node, InferenceError>
Get an input port of the compiled model by name.
Sourcepub fn get_output_size(&self) -> Result<usize, InferenceError>
pub fn get_output_size(&self) -> Result<usize, InferenceError>
Get the number of outputs of the compiled model.
Sourcepub fn get_output(&self) -> Result<Node, InferenceError>
pub fn get_output(&self) -> Result<Node, InferenceError>
Get the single output port of the compiled model, which we expect to have a single output.
Sourcepub fn get_output_by_index(&self, index: usize) -> Result<Node, InferenceError>
pub fn get_output_by_index(&self, index: usize) -> Result<Node, InferenceError>
Get an output port of the compiled model by port index.
Sourcepub fn get_output_by_name(&self, name: &str) -> Result<Node, InferenceError>
pub fn get_output_by_name(&self, name: &str) -> Result<Node, InferenceError>
Get an output port of the compiled model by name.
Sourcepub fn get_runtime_model(&self) -> Result<Model, InferenceError>
pub fn get_runtime_model(&self) -> Result<Model, InferenceError>
Gets runtime model information from a device.
Sourcepub fn get_property(
&self,
key: &PropertyKey,
) -> Result<Cow<'_, str>, InferenceError>
pub fn get_property( &self, key: &PropertyKey, ) -> Result<Cow<'_, str>, InferenceError>
Gets a property for the compiled model.
Sourcepub fn set_property(
&mut self,
key: &RwPropertyKey,
value: &str,
) -> Result<(), InferenceError>
pub fn set_property( &mut self, key: &RwPropertyKey, value: &str, ) -> Result<(), InferenceError>
Sets a property for the compiled model.
Trait Implementations§
Source§impl Drop for CompiledModel
impl Drop for CompiledModel
impl Send for CompiledModel
Auto Trait Implementations§
impl Freeze for CompiledModel
impl RefUnwindSafe for CompiledModel
impl !Sync for CompiledModel
impl Unpin for CompiledModel
impl UnwindSafe for CompiledModel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more