pub struct FusedKernel {
pub id: String,
pub name: String,
pub pattern: FusionPattern,
pub operations: Vec<String>,
pub inputs: Vec<TensorInfo>,
pub outputs: Vec<TensorInfo>,
pub estimated_speedup: f64,
pub memory_savings: usize,
pub implementation: KernelImplementation,
}Expand description
Fused kernel representation
Fields§
§id: String§name: String§pattern: FusionPattern§operations: Vec<String>§inputs: Vec<TensorInfo>§outputs: Vec<TensorInfo>§estimated_speedup: f64§memory_savings: usize§implementation: KernelImplementationImplementations§
Source§impl FusedKernel
impl FusedKernel
pub fn new( id: String, name: String, pattern: FusionPattern, operations: Vec<String>, ) -> Self
pub fn with_inputs(self, inputs: Vec<TensorInfo>) -> Self
pub fn with_outputs(self, outputs: Vec<TensorInfo>) -> Self
pub fn with_speedup(self, speedup: f64) -> Self
pub fn with_memory_savings(self, savings: usize) -> Self
pub fn with_implementation(self, implementation: KernelImplementation) -> Self
Trait Implementations§
Source§impl Clone for FusedKernel
impl Clone for FusedKernel
Source§fn clone(&self) -> FusedKernel
fn clone(&self) -> FusedKernel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FusedKernel
impl RefUnwindSafe for FusedKernel
impl Send for FusedKernel
impl Sync for FusedKernel
impl Unpin for FusedKernel
impl UnsafeUnpin for FusedKernel
impl UnwindSafe for FusedKernel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more