pub enum KernelBody {
Fused(Vec<TensorOp>),
LoopNest(LoopNest),
}Expand description
The body of a kernel.
Variants§
Fused(Vec<TensorOp>)
A simple fused operation.
LoopNest(LoopNest)
A loop nest (lowered from tensor ops).
Trait Implementations§
Source§impl Clone for KernelBody
impl Clone for KernelBody
Source§fn clone(&self) -> KernelBody
fn clone(&self) -> KernelBody
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 KernelBody
impl Debug for KernelBody
Source§impl<'de> Deserialize<'de> for KernelBody
impl<'de> Deserialize<'de> for KernelBody
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 KernelBody
impl RefUnwindSafe for KernelBody
impl Send for KernelBody
impl Sync for KernelBody
impl Unpin for KernelBody
impl UnsafeUnpin for KernelBody
impl UnwindSafe for KernelBody
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