pub struct CachedPlan {
pub key: PlanKey,
pub source: Arc<String>,
pub kernel_name: Arc<String>,
pub kernel_handle: Option<Arc<dyn Any + Send + Sync>>,
}Expand description
Cached plan entry. The payload is type-erased so a single cache can hold gemm / grouped-gemm / conv plans side by side.
Fields§
§key: PlanKey§source: Arc<String>§kernel_name: Arc<String>§kernel_handle: Option<Arc<dyn Any + Send + Sync>>Optional opaque payload, e.g. the post-NVRTC KernelHandle.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CachedPlan
impl !RefUnwindSafe for CachedPlan
impl Send for CachedPlan
impl Sync for CachedPlan
impl Unpin for CachedPlan
impl UnsafeUnpin for CachedPlan
impl !UnwindSafe for CachedPlan
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