pub struct CudnnDispatchCtx<'a> {
pub handle: Arc<Cudnn>,
pub stream: Arc<CudaStream>,
pub completion: Arc<dyn CompletionStrategy>,
pub plan_cache: &'a Mutex<PlanCache>,
pub workspace: &'a Mutex<Option<CudaSlice<u8>>>,
}Expand description
CudnnDispatch is owned by kernel::cudnn (Phase 2 cuDNN).
Re-exported here for symmetry with other actors’ dispatch traits.
Context handed to a CudnnDispatch::dispatch call.
Fields§
§handle: Arc<Cudnn>§stream: Arc<CudaStream>§completion: Arc<dyn CompletionStrategy>§plan_cache: &'a Mutex<PlanCache>§workspace: &'a Mutex<Option<CudaSlice<u8>>>Auto Trait Implementations§
impl<'a> Freeze for CudnnDispatchCtx<'a>
impl<'a> !RefUnwindSafe for CudnnDispatchCtx<'a>
impl<'a> !Send for CudnnDispatchCtx<'a>
impl<'a> !Sync for CudnnDispatchCtx<'a>
impl<'a> Unpin for CudnnDispatchCtx<'a>
impl<'a> UnsafeUnpin for CudnnDispatchCtx<'a>
impl<'a> !UnwindSafe for CudnnDispatchCtx<'a>
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