pub struct ExecutionContext<'engine> { /* private fields */ }
Expand description
Synchronous implementation of crate::ExecutionContext
.
Refer to crate::ExecutionContext
for documentation.
Implementations§
Source§impl ExecutionContext<'static>
impl ExecutionContext<'static>
Source§impl<'engine> ExecutionContext<'engine>
impl<'engine> ExecutionContext<'engine>
pub fn new(engine: &'engine mut Engine) -> Result<Self, Error>
pub fn enqueue<T: Copy>( &mut self, io_tensors: &mut HashMap<&str, &mut DeviceBuffer<T>>, stream: &Stream, ) -> Result<(), Error>
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§
Source§impl<'engine> Drop for ExecutionContext<'engine>
impl<'engine> Drop for ExecutionContext<'engine>
impl<'engine> Send for ExecutionContext<'engine>
Implements Send
for ExecutionContext
.
§Safety
The TensorRT API is thread-safe with regards to all operations on ExecutionContext
.
impl<'engine> Sync for ExecutionContext<'engine>
Implements Sync
for ExecutionContext
.
§Safety
The TensorRT API is thread-safe with regards to all operations on ExecutionContext
.
Auto Trait Implementations§
impl<'engine> Freeze for ExecutionContext<'engine>
impl<'engine> RefUnwindSafe for ExecutionContext<'engine>
impl<'engine> Unpin for ExecutionContext<'engine>
impl<'engine> UnwindSafe for ExecutionContext<'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