pub struct Kernel {
pub id: KernelId,
pub name: Symbol,
pub inputs: Vec<TensorRef>,
pub outputs: Vec<TensorRef>,
pub body: KernelBody,
pub allocs: Vec<AllocInfo>,
pub fusion_info: FusionInfo,
}Expand description
A fused computation kernel.
Kernels are the output of the fusion pass. Each kernel represents a unit of computation that executes without intermediate allocation.
Fields§
§id: KernelIdUnique kernel identifier.
name: SymbolKernel name (for debugging/profiling).
inputs: Vec<TensorRef>Input tensors.
outputs: Vec<TensorRef>Output tensors.
body: KernelBodyThe computation body.
allocs: Vec<AllocInfo>Allocation requirements.
fusion_info: FusionInfoFusion information.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Kernel
impl<'de> Deserialize<'de> for Kernel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Kernel
impl RefUnwindSafe for Kernel
impl Send for Kernel
impl Sync for Kernel
impl Unpin for Kernel
impl UnsafeUnpin for Kernel
impl UnwindSafe for Kernel
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