Struct async_tensorrt::engine::Engine
source · 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 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