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§
Auto Trait Implementations§
impl Freeze for Engine
impl RefUnwindSafe 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