pub struct KernelVariantSelection {
pub variant: &'static str,
pub reason: Cow<'static, str>,
}Expand description
The concrete implementation selected by a kernel’s internal dispatcher.
Unlike KernelMatch (the EP’s claim over a node) and CaptureSupport
(graph-capture eligibility), this records which implementation ran for an
already-claimed node and why the dispatch predicate chose it. A single
claimed op (e.g. MatMulNBits) can pick materially different kernels for the
same shape family, so node-level claims alone do not explain what executed.
The reason travels with the variant so a trace explains both.
Fields§
§variant: &'static strStable implementation name suitable for filtering and aggregation.
reason: Cow<'static, str>Human-readable explanation of the dispatch predicate that selected it.
Implementations§
Trait Implementations§
Source§impl Clone for KernelVariantSelection
impl Clone for KernelVariantSelection
Source§fn clone(&self) -> KernelVariantSelection
fn clone(&self) -> KernelVariantSelection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KernelVariantSelection
impl Debug for KernelVariantSelection
impl Eq for KernelVariantSelection
Source§impl PartialEq for KernelVariantSelection
impl PartialEq for KernelVariantSelection
impl StructuralPartialEq for KernelVariantSelection
Auto Trait Implementations§
impl Freeze for KernelVariantSelection
impl RefUnwindSafe for KernelVariantSelection
impl Send for KernelVariantSelection
impl Sync for KernelVariantSelection
impl Unpin for KernelVariantSelection
impl UnsafeUnpin for KernelVariantSelection
impl UnwindSafe for KernelVariantSelection
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