pub struct Engine { /* private fields */ }
Expand description
Engine for executing inference on a built network.
Implementations§
Source§impl Engine
impl Engine
Sourcepub fn from_inner(inner: InnerEngine) -> Self
pub fn from_inner(inner: InnerEngine) -> Self
Create Engine
from its inner object.
Sourcepub fn serialize(&self) -> Result<HostBuffer, Error>
pub fn serialize(&self) -> Result<HostBuffer, Error>
Sourcepub fn num_io_tensors(&self) -> usize
pub fn num_io_tensors(&self) -> usize
Get the number of IO tensors.
Sourcepub fn io_tensor_name(&self, io_tensor_index: usize) -> String
pub fn io_tensor_name(&self, io_tensor_index: usize) -> String
Sourcepub fn tensor_shape(&self, tensor_name: &str) -> Vec<usize>
pub fn tensor_shape(&self, tensor_name: &str) -> Vec<usize>
Sourcepub fn tensor_io_mode(&self, tensor_name: &str) -> TensorIoMode
pub fn tensor_io_mode(&self, tensor_name: &str) -> TensorIoMode
Auto Trait Implementations§
impl Freeze for Engine
impl RefUnwindSafe for Engine
impl Send for Engine
impl Sync for Engine
impl Unpin for Engine
impl UnwindSafe for Engine
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