pub struct KernelInstance {
pub name: String,
pub source: String,
pub runtime_op: Arc<dyn RuntimeOp>,
pub backward: Option<KernelInstanceBackward>,
}Expand description
A concrete, dtype-resolved kernel produced by a #[kernel(dtypes = [...])]
dispatcher (or a kernel_group!).
It is deliberately crate-agnostic: it carries only the pieces needed to
assemble a compilable unit (teeny-kernels’ KernelExecutable), while
living in teeny-core so the #[kernel] macro can reference it from any
consuming crate without a dependency on teeny-kernels.
Fields§
§name: StringForward kernel name (used to derive the entry-point symbol).
source: StringCombined forward kernel source (kernel_source + entry_point).
runtime_op: Arc<dyn RuntimeOp>Runtime dispatch object for arg-packing and launch config.
backward: Option<KernelInstanceBackward>Backward kernel, present only when the kernel declares one.
Auto Trait Implementations§
impl Freeze for KernelInstance
impl !RefUnwindSafe for KernelInstance
impl Send for KernelInstance
impl Sync for KernelInstance
impl Unpin for KernelInstance
impl UnsafeUnpin for KernelInstance
impl !UnwindSafe for KernelInstance
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