[][src]Struct openvino::Core

pub struct Core { /* fields omitted */ }

See Core.

Implementations

impl Core[src]

pub fn new(xml_config_file: Option<&str>) -> Result<Core, InferenceError>[src]

Construct a new OpenVINO Core--this is the primary entrypoint for constructing and using inference networks.

pub fn read_network_from_file(
    &mut self,
    model_path: &str,
    weights_path: &str
) -> Result<CNNNetwork, InferenceError>
[src]

Read a CNNNetwork from a pair of files: model_path points to an XML file containing the OpenVINO network IR and weights_path points to the binary weights file.

pub fn read_network_from_buffer(
    &mut self,
    model_content: &[u8],
    weights_content: &[u8]
) -> Result<CNNNetwork, InferenceError>
[src]

Read a CNNNetwork from a pair of byte slices: model_content contains the XML data describing the OpenVINO network IR and weights_content contains the binary weights.

pub fn load_network(
    &mut self,
    network: &CNNNetwork,
    device: &str
) -> Result<ExecutableNetwork, InferenceError>
[src]

Instantiate a CNNNetwork as an ExecutableNetwork on the specified device.

Trait Implementations

impl Drop for Core[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.