pub struct Engine { /* private fields */ }Expand description
Synchronous implementation of crate::Engine.
Refer to crate::Engine for documentation.
Implementations§
source§impl Engine
impl Engine
pub fn serialize(&self) -> Result<HostBuffer, Error>
pub fn num_io_tensors(&self) -> usize
pub fn io_tensor_name(&self, io_tensor_index: usize) -> String
pub fn tensor_shape(&self, tensor_name: &str) -> Vec<usize>
pub fn tensor_io_mode(&self, tensor_name: &str) -> TensorIoMode
pub fn as_ptr(&self) -> *const c_void
pub fn as_mut_ptr(&mut self) -> *mut c_void
pub fn device(&self) -> DeviceId
Trait Implementations§
impl Send for Engine
impl Sync for Engine
Auto Trait Implementations§
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