[−][src]Struct openvino::Core
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]
&mut self,
model_path: &str,
weights_path: &str
) -> Result<CNNNetwork, InferenceError>
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]
&mut self,
model_content: &[u8],
weights_content: &[u8]
) -> Result<CNNNetwork, InferenceError>
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]
&mut self,
network: &CNNNetwork,
device: &str
) -> Result<ExecutableNetwork, InferenceError>
Instantiate a CNNNetwork as an ExecutableNetwork on the specified device
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Core
[src]
impl !Send for Core
[src]
impl !Sync for Core
[src]
impl Unpin for Core
[src]
impl UnwindSafe for Core
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,