cubecl_core::tune

Trait AutotuneOperation

Source
pub trait AutotuneOperation<Output = ()>: Debug {
    // Required methods
    fn execute(self: Box<Self>) -> Output;
    fn clone(&self) -> Box<dyn AutotuneOperation<Output>>;

    // Provided method
    fn name(&self) -> &str { ... }
}
Expand description

Contains operation to run and inputs on which to run it

Required Methods§

Source

fn execute(self: Box<Self>) -> Output

Runs the operation

Source

fn clone(&self) -> Box<dyn AutotuneOperation<Output>>

Clones the operation and inputs

Provided Methods§

Source

fn name(&self) -> &str

The name of the operation.

Implementors§